XPath cannot do regexp yet. You can try some substring functions, like substring-before,after and translate... [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
you can do
...
<xsl:variable name="value">9911111222223
</xsl:variable> <!--if you need to define the number, otherwise select it from the XML -->
...
<xsl:value-of select="format-number($value, '##.#####.#####.#')"/>
Great Flumpy! I was interested in this as well...
But, how are the parsers coping with that? DO you know anything?
I am writing some stylesheets that should be properly ported across systems, so, for example, is this function available in Saxon, Xalan anso? [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
so therefore any parser worth its salt should therefore allow the format-number function...
I know MSXML uses it for sure, and I've just used it with xerces.
On second thoughts with regards to the original post's purpose, Im not really sure it was meant to cope with such a large number or that many dots so maybe its not actually what hes looking for. ho hum. may be worth a try, whats to loose? It may be a little more complex than i implied, cause you might need to set up the decimal format for it before you start off. hmm.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.