This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Conversion of int to string


Reema,
Something like

xml
<test>
<a>1</a>
</test>

xslt
<xsl:variable name="ascii">
!&quot;#$%&amp;&apos;()*+,-./0123456789:;&lt;=>?@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]