[Home] [By Thread] [By Date] [Recent Entries]
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
|

Cart



