Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
Basic XSLT/XSLTC question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Dimitre Novatchev [MVP XML], post: 771705"] I guess that you read the second edition of Mike's book, in which he covered XSLT 1.1. XSLT 1.1 was never developed by the W3C into a final status and is not a standard. The current standard of XSLT 1.0 has the concept of RTF (Result Tree Fragment). An RTF cannot be treated like a node-set in XPath -- any such attempt results in raising an error -- this is exactly what you described. In order to process an RTF as a node-set, one must use an implementation-defined extension function with the usual name of node-set(), belonging to an implementation-dependent namespace, or use the common:node-set() function as defined by EXSLT. These functions take an RTF and convert it to a regular node-set. Then their result is a regular tree (a node-set having just one root node) and can be navigated using XPath. Therefore, you also have to use whatever implementation-defined xxx:node-set() extension function is available for your XSLT processor. Cheers, Dimitre Novatchev [XML MVP], FXSL developer, XML Insider, [URL]http://fxsl.sourceforge.net/[/URL] -- the home of FXSL Resume: [URL]http://fxsl.sf.net/DNovatchev/Resume/Res.html[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
Basic XSLT/XSLTC question
Top