Re: [xsl] Finding out the ascii value of a char using xsl

Subject: Re: [xsl] Finding out the ascii value of a char using xsl
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 31 Oct 2001 15:27:55 GMT

> I will use this to cut out all values which are less than 32 from a string.
> 
> If there is some better way of doing this than the recursive solution I have 
> in mind, I would gladly recieve such a solution.

the only values less than 32 are 9, 10 and 13, so you can just use
translate(.,'&#9;&#10;&#13;','')

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread