This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Conversion of int to string
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Conversion of int to string
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- Date: Tue, 23 Oct 2001 14:22:29 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> ReemaD@riskinc.com
> Sent: 23 October 2001 13:37
> To: XSL-List@lists.mulberrytech.com
> 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@riskinc.com
> 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