Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


model group and targetNamespace

From: "Zhisheng Huang" <zhish@---------.--->
To: <xmlschema-dev@--.--->
Date: 11/30/2004 7:17:00 AM
Hi,

 

I have following model group definition in one schema and it is
referenced in another schema with a different targetNamespace. What
should ##targetNamesapce refer to when this group is referenced: the
namespace where it is defined, or the namespace where it is referenced?
What is the namespace of "foo"?

 

   <xs:group name="MyGroup">

     <xs:sequence minOccurs="0" maxOccurs="unbounded">

        <xs:element name="foo" type=" xs:int" />

        <xs:any minOccurs="0" maxOccurs="unbounded"
namespace="##targetNamespace" processContents="lax" />

     </xs:sequence>

   </xs:group>

 

I think it is the namespace of the referecing schema (not that of the
schema where it is defined). However, I can not find w3c recommendations
on schema that clearly say so. It actually says "It provides for naming
a model group for use by reference in the XML representation of complex
type definitions and model groups."

 

Thanks,

Zhisheng



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent