final AttributeList rootAttributes = new AttributeList();
rootAttributes.addNamespaceDeclaration("", BundleNamespaces.LAYOUT);
rootAttributes.addNamespaceDeclaration("style", BundleNamespaces.STYLE);
rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);
rootAttributes.addNamespaceDeclaration("wizard", AttributeNames.Wizard.NAMESPACE);
final AttributeList attList = createMainAttributes(element, xmlWriter, rootAttributes);
xmlWriter.writeTag(BundleNamespaces.LAYOUT, "layout", attList, XmlWriterSupport.OPEN);