RE: [xsl] Character Codes

Subject: RE: [xsl] Character Codes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 27 Sep 2005 09:11:53 +0100
In 2.0

string-to-codepoints($char) gt 32

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: Alan Gutierrez [mailto:alan-xsl-list@xxxxxxxxx] 
> Sent: 27 September 2005 08:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Character Codes
> 
>     Using XSLT 2.0...
> 
>     I'm trying to output as text a JavaScript string, and I'd like
>     to escape it correctly. In the code that I see on the JSON
>     pages, the different implementations of these JavaScript
>     stringifiers appear to convert a character that is greater than
>     or equals to ' ' to a unicode escape.
> 
>     How would I determine if a character was greater than ' ' in
>     XSLT? I can't seem to find a function in XPath or XSLT specs.
> 
> --
> Alan Gutierrez - alan@xxxxxxxxx
>     - http://engrm.com/blogometer/index.html
>     - http://engrm.com/blogometer/rss.2.0.xml

Current Thread