You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Transform <x>089</x>
What is the expected output? What do you see instead?
You see x:089.
But 089 is an invalid octal number in Javascript.
Replacing
<xsl:template match="text()[not(string(number())='NaN')]">
with
<xsl:template match="text()[not(string(number())='NaN') and
not(starts-with(.,'0') and (contains(.,'8') or contains(.,'9')))]">
solves the problem.
I'm attaching the revised scripts (including Mat Perrin's correction of
handing null elements).
Original issue reported on code.google.com by root.n...@gmail.com on 30 Oct 2007 at 7:07
Original issue reported on code.google.com by
root.n...@gmail.com
on 30 Oct 2007 at 7:07Attachments:
The text was updated successfully, but these errors were encountered: