This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can XPath / XSLT be aware of XML Schema content models grouping information ?



Here's my problem :

If we have a source document schema like :
...
<xsd:complexType>
   <xsd:sequence maxOccurs="2">
      <xsd:choice maxOccurs="2">
         <xsd:element name="A" type="xsd:decimal"/>
         <xsd:element name="B" type="xsd:decimal"/>
      </xsd:choice>
      <xsd:choice maxOccurs="3">
         <xsd:element name="C" type="xsd:string" maxOccurs="2"
minOccurs="2"/>
         <xsd:element name="A" type="xsd:decimal"/>
      </xsd:choice>
   </xsd:sequence>
</xsd:complexType>
...

Is there any way (or plan in XPath 2.0 / XSLT 2.0) to "address" / "select",
for example, the occurences of element A that are part of the 3rd occurence
of the second group which itself is part of the 2nd occurence of the
containing sequence (if this occurences exists) ?

Thanks for your insights !

Jerome


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]