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

RE: Can XPath / XSLT be aware of XML Schema content mo

Subject: RE: Can XPath / XSLT be aware of XML Schema content models grouping i nformation ?
From: Jerome Louvel <Jerome.Louvel@xxxxxxxxxxxxxx>
Date: Fri, 9 Nov 2001 10:38:18 -0500
xslt occurences
Thanks Jeni for your comments. 

In fact this is more an hypothetical problem that we may encounter than a
real world requirement.

However after reading the article on James Clark in DDJ "A Triumph of
Simplicity: James Clark on Markup Languages and XML"
http://www.ddj.com/documents/s=862/ddj0107e/0107e.htm I'm now wondering if
this inclusion in XPath/XSLT 2.0 would be a good thing, especially if you
consider XML Schema as just one way to constrain / validate an XML document
compared to Relax NG, Schematron, XDR, .... 

Regards,

Jerome Louvel



-----Original Message-----
From: Jeni Tennison [mailto:jeni@xxxxxxxxxxxxxxxx]
Sent: Friday, November 09, 2001 5:34 AM
To: Jerome Louvel
Cc: Xsl-List (E-mail)
Subject: Re:  Can XPath / XSLT be aware of XML Schema content
models grouping i nformation ?


Hi Jerome,

> 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)
> ?

There's certainly not in XSLT 1.0. For XPath/XSLT 2.0 to support it,
the XQuery/XPath data model would have to include model groups. The
only schema components that it does so far (see the WD at
http://www.w3.org/TR/query-datamodel/#types) seems to be
element/attribute declarations and simple/complex types. So it doesn't
look as though there's a plan to have this support at present.

But you should bring it up to the XQuery/XPath editors
(www-xml-query-comments@xxxxxx). The schema support in XPath/XSLT
should reflect real world requirements, and if you've got one, then
you should make your case!

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

 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.