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

RE: XPath 2.0 - how much of XQuery should it include?


xquery xpath attributes
> My argument is that it would be perfectly possible for XSLT 
> and XPath 2.0 to work in a complementary way again. We could 
> redraw the line where it was before, but allow a couple of 
> extra shorthand features in the text-based syntax, namely 
> conditional expressions and a simple mapping operator. But 
> these should be shorthand features that are used for the most 
> common kinds of looping and conditional expressions, not 
> mirrors of the full functionality of XSLT.
> 
Jeni, as you said in an earlier mail, there is no absolutely correct
place to draw the line. My approach is that XPath is there to calculate
values based on the information in the source tree, while XSLT is there
to construct nodes in the result tree. This isn't the only way of
defining the distinction, but it works for me. Drawing the line here
puts sequence construction firmly on the XPath side of the boundary,
because a sequence is a value. Places where the line has been drawn
differently, for example <xsl:number/>, stick out like a sore thumb.
There are some people (including people on the WG) who would like to
draw it differently, and (I regret to say) there are some who would like
to compromise by duplicating the functionality on both sides. There is
no right answer, but I'm personally happy with having the line where
we've put it. It does mean that some XPath expressions sit rather
uncomfortably inside XML attributes, and we've looked at proposals that
address that, but I don't feel that balancing the length of the XPath
attributes against the number of XSLT elements is the right way to make
the judgement. You can always break up long expressions using variables
or function calls.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s... 


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.