Subject: RE: [xsl] Transcode strings into Numeric Character References? From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 5 Sep 2005 16:23:34 +0100 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Transcode strings into Numeri, Phillip B Oldham | Thread | Re: [xsl] Transcode strings into Nu, David Carlisle |
RE: [xsl] Testing attribute name an, Kevin L. Cobb | Date | Re: [xsl] Transcode strings into Nu, David Carlisle |
Month |