xsl-list
[Top] [All Lists]

RE: Transcode strings into Numeric Character References?

2005-09-05 08:23:34
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(_dot_)oldham(_at_)kilo75(_dot_)com] 
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?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>