Subject: Re: [xsl] Extract only numeric value From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Thu, 24 May 2007 13:40:08 +0530 |
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="x"> <year><xsl:value-of select="replace(year, '[a-zA-Z]', '')" /></year> </xsl:template>
<x> <year>X2A007a</year> </x>
Dear All, I would like a help about to extract numeric value.
Input <year>2007a</year> Output <year>2007</year>
Thanks in advance for your kind help. ...JSR
-- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Extract only numeric valu, J. S. Rawat | Thread | Re: [xsl] Extract only numeric valu, Jeff Sese |
Re: [xsl] Extract only numeric valu, Abel Braaksma | Date | Re: [xsl] Extract only numeric valu, Jeff Sese |
Month |