This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Splitting non-delimited string
- From: "Denny, Allison M. (LNG-CIS)" <allison dot denny at lexisnexis dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 28 Dec 2001 14:12:47 -0500
- Subject: RE: [xsl] Splitting non-delimited string
- Reply-to: xsl-list at lists dot mulberrytech dot com
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