[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

apos output problems

Subject: apos output problems
From: "Steve Brown" <prospect@xxxxxxxxxxx>
Date: Tue, 16 May 2000 10:06:06 +1000
apos
hi,

Having a little trouble outputing a apostophes file created using Xalan
translator in java.

when I call:

processor.process(dataSource, styleSource, resultTarget);

with the resultTarget being a printStream I get the ' char (which I want)

however, when the result target is a Document (xerces.dom.DocumentImpl())
and then print that out, I get &apos; instead. (which I dont want)

I use the following code to print the Document:

OutputFormat _outputFormat = new OutputFormat();
_outputFormat.setOmitXMLDeclaration( true );
_outputFormat.setIndenting( false );
_outputFormat.setLineSeparator( "" );
ByteArrayOutputStream baos = new ByteArrayOutputStream();
org.apache.xml.serialize.XMLSerializer serializer = new XMLSerializer( baos,
_outputFormat);
serializer.serialize( element );
System.out.println(baos.toString());

I've been looking into encoding (which doesnt seem to be the way to fix it)
and output-escaping (but I dont know how to apply that correctly).

I think I have to set up some parameter or something in OutputFormat so that
it outputs correctly for me.

Any ideas?

Thanks

Steve.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.