[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Remove a number at the beginning of some text
Subject: [xsl] Remove a number at the beginning of some text From: Graeme Kidd <coolkidd3@xxxxxxxxxxx> Date: Wed, 7 Jan 2009 15:18:40 +0000 |
Hi, I wanting to remove a number in some text e.g. < root> < p>1.3 Heading < / p> < root> Should be: < root> < p>Heading < / p> < root> So far I have this which does not work: < xsl:template match="p"> < xsl:choose> < xsl:when test="contains(text(),number())"> < xsl:value-of select="substring-after(text(),number(.))" /> < /xsl:when> < xsl:otherwise> < xsl:value-of select="current()"/> < /xsl:otherwise> < /xsl:choose> < /xsl:template> Any ideas on how I can achive this? Thanks PS Spacing used so that they werent removed by hotmail _________________________________________________________________ Imagine a life without walls. See the possibilities http://clk.atdmt.com/UKM/go/122465943/direct/01/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] casting sequences, Michael Kay | Thread | Re: [xsl] Remove a number at the be, Wendell Piez |
Re: [xsl] XSLT, Web applications, a, Robert Koberg | Date | Re: [xsl] Remove a number at the be, Wendell Piez |
Month |