[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Splitting non-delimited string
Subject: Re: [xsl] Splitting non-delimited string From: Trevor Nash <tcn@xxxxxxxxxxxxx> Date: Fri, 28 Dec 2001 17:36:05 +0000 |
Alison, >Hello, > >I have an id that is half numeric and half text. I need to split it into >two ids--one numeric, and one text. The id can be any length, and has no >delimiters. > >From: ><AgencyReportNumber>123ABC</AgencyReportNumber> > translate (., '0123456789', '') will delete all the digits leaving you the letter part, you can then use either substring-before() or string-length() and substring() to get hold of the digits part. Trevor Nash -- Traditional training & distance learning, Consultancy by email Melvaig Software Engineering Limited voice: +44 (0) 1445 771 271 email: tcn@xxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Splitting non-delimited s, David Carlisle | Thread | RE: [xsl] Splitting non-delimited s, Michael Kay |
Re: [xsl] Splitting non-delimited s, David Carlisle | Date | Re: [xsl] Re: Assignment no, dynami, Mike Haarman |
Month |