[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: CDATA and Named Entities to ASCII
At 2007-11-30 22:51 +0000, Mark Anderson wrote:
I need to transform some XML to ASCII text. <xsl:output method="text"/> will serialize your result tree as simple text without escaping markup-sensitive characters. In your result tree all elements and attributes are ignored and all PCDATA is serialized to the output. Construct your result tree as you would for any HTML or XML result ... that bit doesn't change ... putting out simple text is just a serialization issue. Note that if you really need US ASCII 7-bit, then you would need: <xsl:output method="text" encoding="US-ASCII"/> Typically for 8-bit text I use the Latin-1 character set: <xsl:output method="text" encoding="ISO-8859-1"/> The default is UTF-8, a hybrid 7-bit/8-bit encoding. I hope this helps. . . . . . . . . Ken
|
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
|