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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--