[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: string processing

Subject: RE: string processing
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 22 Nov 2002 10:03:10 +0200
string processing .net
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.

XSLT Standard Library <http://xsltsl.sourceforge.net/> has a tokenized template, Dimitre too probably has what you need <http://fxsl.sourceforge.net/>.

> 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?

e.g.

<xsl:variable name="names">
  <xsl:for-each select="*">
    <xsl:if test=""> </xsl:if>
    <xsl:value-of select="name()" />
  </xsl:for-each>
</xsl:variable>

Would give you a space separated list of child names.

Cheers,

Jarno - Lights of Euphoria: Fortuneteller (Aghast View Remix)

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.