Re: Using xsd:type in xml files

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 UTC