Subject: [xsl] Problem using Math functions From: "Pankaj Bishnoi" <pankaj.bishnoi@xxxxxxxxxxx> Date: Tue, 24 Jan 2006 19:24:43 +0530 |
Hi I am facing problem in math function '+'. My Source XML is ::: <employees> <employee> <Arg1>1000020000300004000050000</Arg1> <Arg2>0000000000000001000010000</Arg2> </employee> </employees> and XSL is :::: <xsl:template match="/"> <employees> <employee> <Output> <xsl:value-of select="/employees/employee/Arg1+ /employees/employee/Arg2"/> </Output> </employee> </employees> </xsl:template> Now the Output generated is :::: <employees> <employee> <Output>1000020000300005000000000</Output> </employee> </employees> Now here the output generated is 1000020000300005000000000 it should have been 1000020000300005000060000. I am using Xalan transformer for my transformations. Here the transformer is appending five 0's in the last 5 positions. whenever the ouput exceeds 20 characters then it inserts 0's. Anybody having any idea on this problem?? Please advise. Thanks in advance. Thanks Pankaj
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Selecting an element by a, David Carlisle | Thread | Re: [xsl] Problem using Math functi, David Carlisle |
Re: [xsl] Loading XML with XSL for , Bjorn Van Blanckenbe | Date | Re: [xsl] Loading XML with XSL for , David Carlisle |
Month |