Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Sort nodes

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent