[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Transcode strings into Numeric Character Reference

Subject: RE: Transcode strings into Numeric Character References?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 5 Sep 2005 16:23:34 +0100
numeric character reference download
If by "strange" you mean non-ASCII (an English perspective...) then try

<xsl:output encoding="us-ascii"/>

Note that generation of character references falls within the domain of the
serializer, not the transformer.

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

> -----Original Message-----
> From: Phillip B Oldham [mailto:phillip.oldham@xxxxxxxxxx] 
> Sent: 05 September 2005 16:11
> To: Mailing List: XSL
> Subject:  Transcode strings into Numeric Character References?
> 
> Hi all
> 
> Just wondering what the quickest way is to transcode strings into
> numeric character references? I need to ensure that all "strange"
> characters (curly quote marks, etc) are encoded, and for some items I
> need to encode alphanumeric characters also. However, I'm using XPath
> 1.0, and don't fancy doing a heafty xsl choose statement to 
> loop through
> each element.
> 
> Any ideas?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.