Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Sort nodes >Thread Next - Re: Sort nodes Re: Sort nodesTo: NULL Date: 12/3/2005 1:21:00 PM aerotops wrote: > I am trying to sort some elements. But my key is a node fragment. How > can I sort this? Or how can I convert a node fragment to a node set? It would help if you mention what language or API you are using. For instance DOM has document fragment nodes. As you mention node set you might also be using XSLT but XSLT does not know node fragments but only result tree fragements. Why do we have to guess? If you are using XSLT 1.0 and you want to convert a result tree fragment into a node set then you need to use an XSLT processor that provides an extension function for that. Many by now have one, but not all, and while there is this attempt to standardize the name and namespace of such an extension function <http://www.exslt.org/exsl/functions/node-set/index.html> some processors use a different name and/or namespace. So check your XSLT processor's documentation. If you want to solve the problem without an extension function then you need to two pass transformation with two stylesheets which you chain so that the second stylesheet processes the result of the first stylesheet. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
