RE: [xsl] Splitting non-delimited string

Subject: RE: [xsl] Splitting non-delimited string
From: "Denny, Allison M. (LNG-CIS)" <allison.denny@xxxxxxxxxxxxxx>
Date: Fri, 28 Dec 2001 14:12:47 -0500
Thank you to David and Trevor!  Translate was the key.

Here's what I ended up with:

<xsl:element name="TEXT-PORTION">
	<xsl:variable name="text" select="translate (., '0123456789', '')"/>
	<xsl:value-of select="$text"/>
</xsl:element>
	
<xsl:element name="NUMBER-PORTION">
	<xsl:variable name="number" select="translate (.,
'abcdefghijklmnopqrstuvwxyz', '')"/>
	<xsl:value-of select="$number"/>
</xsl:element>


Allison Denny
Data Analyst
4520 East-West Highway
Bethesda, MD  20814

LexisNexis
It's how you know 


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


Current Thread