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

Can XPath / XSLT be aware of XML Schema content models

Subject: Can XPath / XSLT be aware of XML Schema content models grouping information ?
From: Jerome Louvel <Jerome.Louvel@xxxxxxxxxxxxxx>
Date: Thu, 8 Nov 2001 18:51:59 -0500
xsd choice xpath
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.