[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
model group and targetNamespace
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
Received on Wednesday, 1 December 2004 09:58:47 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.