I have already written an XSLT code to extract the numerical characters from the string ..
This is the test xml:
(looks Bit weird but I am expecting much from XSLT)
<xml>
<tag>10a08bOE9W234 W30D:S</tag>
<tag>10.233.23</tag>
</xml>
This is the XSLT code I am trying with:
<xsl:template match="tag">
<tag>
<xsl:value-of select="number(translate(., 'a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|.|:| ', ''))"/>
<!-- I am not happy writing this line .. is there any light weight code replacement-->
</tag>
</xsl:template>
Outputs ..
<tag>1008923430</tag>
<tag>1023323</tag>
..
And moreover .. I want second tag to output like 10.23323
ie, allowing only first decimal-point .
and ignoring the succeeding ones ..
Is it possible with only with XSLT 1.0 ??