xmlWriter.writeTag(BundleNamespaces.LAYOUT, tagName, "href",
'/' + subReportState.getFileName() + "content.xml", XmlWriterSupport.OPEN);
for (int i = 0; i < inputMappings.length; i++)
{
final ParameterMapping mapping = inputMappings[i];
final AttributeList attrs = new AttributeList();
attrs.setAttribute(BundleNamespaces.LAYOUT, "master-fieldname", mapping.getName());
attrs.setAttribute(BundleNamespaces.LAYOUT, "detail-fieldname", mapping.getAlias());
xmlWriter.writeTag(BundleNamespaces.LAYOUT, "input-parameter", attrs, XmlWriterSupport.CLOSE);
}
for (int i = 0; i < outputMappings.length; i++)
{
final ParameterMapping mapping = outputMappings[i];
final AttributeList attrs = new AttributeList();
attrs.setAttribute(BundleNamespaces.LAYOUT, "master-fieldname", mapping.getName());
attrs.setAttribute(BundleNamespaces.LAYOUT, "detail-fieldname", mapping.getAlias());
xmlWriter.writeTag(BundleNamespaces.LAYOUT, "output-parameter", attrs, XmlWriterSupport.CLOSE);
}
xmlWriter.writeCloseTag();
}
}