[xsl] Re: string processing

Subject: [xsl] Re: string processing
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 22 Nov 2002 03:42:18 -0800 (PST)
--- Mclean, Patrick  wrote:
> Hi, 
> I'm trying to work out how to tokenizer two separate strings and then
> compare their tokens using xslt.  Does anyone have a solution to this
> problem?  It seems reasonably straight forward in java but not so
> with
> xslt.
> Also it seems strange that the name() function only returns the first
> node in the node set.  If I am selecting a particular named group of
> elements within an xml document that contain different elements and I
> don't know what this elements are in advance is there any way of
> returning all their names as a string?

Use the str-split-to-words template (import str-split-to-words.xsl)
from FXSL.

You can also read a brief description of the ideas lying behind this
folding-over-a-list-of-chars algorithm at:

http://sources.redhat.com/ml/xsl-list/2001-11/msg00901.html




=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus ? Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread