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

RE: XPath 2.0 data-model - dm:string-value of a node

  • From: "Michael Kay" <mike@s...>
  • To: "'Chris Burdess'" <dog@b...>
  • Date: Fri, 29 Feb 2008 16:46:27 -0000

RE:  XPath 2.0 data-model - dm:string-value of a node
> If you change the core semantics of a function, the function 
> should really be renamed. If it's not renamed, you need to 
> include clear warnings about incompatibility between 
> versions. I think that XPath 2.0 did a very good job in this regard.
> 
> However, in the incompatibility notes for XPath 2.0 it 
> doesn't say anything about a change to the semantics of 
> text(). Also, I can't find anything in the XPath 1.0 
> specification that says that text() should only match the 
> first text node. In fact, it says:
> 
>   "The node test text() is true for any text node. For example,
>   child::text() will select the text node children of the 
> context node."
> 
> This is true of XPath 2.0 as well. So does this horrible 
> backwards incompatibility even actually exist?

As I explained earlier in this thread, the result of the path expression
hasn't changed. It's the <xsl:value-of> instruction that has changed. This
is clearly documented in list item 1 of

http://www.w3.org/TR/xslt20/#backwards-compatibility-behavior

Note that the incompatibility only arises if you change the version
attribute of xsl:stylesheet to "2.0" - 1.0 stylesheets if unchanged behave
as they did before.

Michael Kay
http://www.saxonica.com/



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.