[Home] [By Thread] [By Date] [Recent Entries]
On 22/02/2010 01:13, Syd Bauman wrote:
In both cases it seems as though $a contains only 1 thing, a string. (You can test that it is not a node set by using $a in the select= of a for-each -- you should get a runtime error, since it is a string.) Ken's covered most of the points but just to note that there are crucial differences between the result tree fragment and its string value. While the operations you can do on an rtf are just those you can do on a string, the results of those operations are different: xsl:copy-of on a string is the same as xsl:value-of, but xsl:copy-of on an rtf is copies of the underlying nodes. If used in a boolean context a string is true just if it is non empty, but an rtf is always true 9as it corresponds to a document node) exslt:node-set (and xalan:nodeset, saxon;node-set, msxsl:node-set, etc) work with result tree fragments not strings. Basically rtf in xslt1 is restricted in such a way that it could be extended in a future (at the time) version of xslt to act like a node set rather than a string. David David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|

Cart



