This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XML to plain text : which processor best to use ?
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 12 Jul 2002 18:14:33 +0100
- Subject: RE: [xsl] XML to plain text : which processor best to use ?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I need to transform XML documents into plain text documents
> using XLST, as part of a Java project. Usually I use Xalan
> for XML --> XML transformations in java evironment, but this
> time not only I will transform XML into text but also I need
> to be able to manage perfectly blank spaces and carriage
> returns. So I was wondering which processor to choose (Xalan,
> XT, others...) for doing this, with eventually some special
> extensions (OutputHandler ?) for managing correctly carriage
> returns and blank spaces. It seems that most processors does
> not handle carriage returns very well without extensions...
You can produce any standard XML character in the output without
recourse to extensions. You will only need extensions to produce non-XML
characters, e.g. C0 control characters. All the Java processors provide
rather similar mechanisms for achieving this.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list