This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: XML to plain text : which processor best to use ?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]