58. The computer-implemented method of claim 55 , wherein said generating said attribute declaration comprises, if said determining determines that, said target namespace of the current local element declaration or referenced global element declaration is different from a target namespace of said complex type definition, and said target namespace of said local element declaration or referenced global element declaration is non-null or an “AttributeFormDefault” attribute of an XML schema containing said complex type definition has a value different from “unqualified”: creating, by said processor, a new global attribute declaration having a type matching a determined type of the current local element declaration or referenced global element declaration and having a target namespace matching a target namespace of the current local element declaration or referenced global element declaration; and adding, by said processor, to said complex type definition an attribute reference referencing said new global attribute declaration.
55. The computer-implemented method of claim 48 , wherein said generating said XML schema fragment comprises: identifying a first set of local element declarations or element references contained within said complex type definition to which said rendering option is applicable; identifying a second set of local element declarations or element references contained within one or more groups referenced by group references in said complex type definition to which said rendering option is applicable; and for each local element declaration or element reference in said first set and said second set, determining a namespace of a current local element declaration or of a global element declaration referenced by a current element reference and generating an attribute declaration based on said determining.