Hi, Nirmal

For XML output, only <, &, ", > will be escaped. If you want to escape “ ‘ “, you can create your own org.apache.xml.serializer.XMLEntities.properties file to replace the default one.

Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]



Nirmal JS <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>

29/08/2006 03:50 AM

To
xalan-j-users@xml.apache.org
cc
Subject
Apostrophe problem with xalan 2.7.0





Hi everyone,

While using xalan 2.1.0 and xerces 1.4.3 jars, the out file will have
the “&apos;” in place of      
“ ‘ “ Literal in input file.
When we use the latest version of xalan 2.7.0 and xerces 2.8.0, it will result
the same “ ‘ “ literal in out file,

The classes and methods that we suspected regarding this conversion are


OutputFormat format = new OutputFormat ("xml", encoding, indentResult);

format.setOmitXMLDeclaration (true);

serializer = new XMLSerializer (outputStream, format);



We need “&apos;” in output file, can anyone help me in this regard.


Thanks and Regards
Nirmal JS
[EMAIL PROTECTED]


Reply via email to