Subject: RE: [xsl] Conversion of int to string From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Tue, 23 Oct 2001 14:22:29 +0100 |
Reema, Something like xml <test> <a>1</a> </test> xslt <xsl:variable name="ascii"> !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVW XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~</xsl:variable> <xsl:template match="a"> <xsl:value-of select="substring($ascii, ., 1)" /> </xsl:template> Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > ReemaD@xxxxxxxxxxx > Sent: 23 October 2001 13:37 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Conversion of int to string > > > Hi All, > I am working on XML and transforming it using XSLT. I > wanted to convert an Integer to a string. I have the ascii > value with me and i want it's character equivalent. Is there > any way to do this using XSL only?? I cannot use any other > programming language and i'm parsing through IE (msxml). > > Please help me out. > > Thanks in advance, > Reema Duggal > Software Engineer ( Software ) > Technology Division > RMSI > A-7 Sector - 16 > Noida-201 301 India > Tel : (91)-118-451-1102-2268 > Fax: (91)-118-451-1109, 0963 > E-mail: reemad@xxxxxxxxxxx > web : www.rmsinet.com > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Conversion of int to string, ReemaD | Thread | Re: [xsl] Conversion of int to stri, Oleg Tkachenko |
[xsl] better way to get a sibling?, Eric Vitiello | Date | [xsl] Getting at original document , Phil Endecott |
Month |