W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2004

model group and targetNamespace

From: Zhisheng Huang <zhish@microsoft.com>
Date: Tue, 30 Nov 2004 15:16:56 -0800
Message-ID: <682F4028CFFA9A4F82DF7ECC991F6FAC035BDA02@RED-MSG-43.redmond.corp.microsoft.com>
To: <xmlschema-dev@w3.org>


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" />




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."



Received on Wednesday, 1 December 2004 09:58:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC