[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Transcode strings into Numeric Character Reference
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?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|