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

Re: Using xsd:type in xml files

From: Nicolas Mailhot <nicolas.mailhot@laposte.net>
Date: Mon, 11 Apr 2005 10:55:10 +0200 (CEST)
Message-ID: <32820.192.54.193.28.1113209710.squirrel@rousalka.dyndns.org>
To: "Nicolas Mailhot" <nicolas.mailhot@laposte.net>
Cc: xmlschema-dev@w3.org
xsd type ref


On Lun 11 avril 2005 10:42, Nicolas Mailhot a écrit :

> On my own I'd urge to use the named elements since we've declared them,

The problem of course is the element foo is used inside a sequence
somewhere else, so replacing the foo xsd:type="bar_x" elements by bar_x
elements make the validation fail here :

  <xsd:element name="A">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="X:B"/>
        <xsd:element ref="X:C"/>
        <xsd:element ref="X:foo"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>

Rhaaa, what a mess

-- 
Nicolas Mailhot
Received on Monday, 11 April 2005 08:55:19 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.