Apostrophe problem with xalan 2.7.0 2006-08-29 - By Christine Li
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: jycli@(protected)
Nirmal JS <joesnirmal@(protected)> Sent by: news <news@(protected)> 29/08/2006 03:50 AM
To xalan-j-users@(protected) 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 ?'? 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 ?'? in output file, can anyone help me in this regard.
Thanks and Regards Nirmal JS joesnirmal@(protected)
<br><font size=2 face="sans-serif">Hi, Nirmal</font> <br> <br><font size=2 face="sans-serif">For XML output, only <, &, ", > will be escaped. If you want to escape </font><tt><font size=2>“ ‘ “</font></tt><font size=2 face="sans-serif">, you can create your own org.apache.xml.serializer.XMLEntities.properties file to replace the default one.</font> <br> <br><font size=2 face="sans-serif">Christine Li<br> XSLT Development<br> IBM Toronto Lab<br> Tel: (905)413-2601<br> Email: jycli@(protected)</font> <br> <br> <br> <table width=100%> <tr valign=top> <td width=40%><font size=1 face="sans-serif"><b>Nirmal JS <joesnirmal@(protected) .co.in></b> </font> <br><font size=1 face="sans-serif">Sent by: news <news@(protected)>< /font> <p><font size=1 face="sans-serif">29/08/2006 03:50 AM</font> <td width=59%> <table width=100%> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">To</font></div> <td><font size=1 face="sans-serif">xalan-j-users@(protected)</font> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">cc</font></div> <td> <tr valign=top> <td> <div align=right><font size=1 face="sans-serif">Subject</font></div> <td><font size=1 face="sans-serif">Apostrophe problem with xalan 2.7.0</font>< /table> <br> <table> <tr valign=top> <td> <td></table> <br></table> <br> <br> <br><tt><font size=2>Hi everyone,<br> <br> While using xalan 2.1.0 and xerces 1.4.3 jars, the out file will have <br> the “&apos;” in place of <br> “ ‘ “ Literal in input file.<br> When we use the latest version of xalan 2.7.0 and xerces 2.8.0, it will result <br> the same “ ‘ “ literal in out file,<br> <br> The classes and methods that we suspected regarding this conversion are<br> <br> <br> OutputFormat format = new OutputFormat ("xml", encoding, indentResult );<br> <br> format.setOmitXMLDeclaration (true);<br> <br> serializer = new XMLSerializer (outputStream, format);<br> <br> <br> <br> We need “&apos;” in output file, can anyone help me in this regard.<br> <br> <br> Thanks and Regards<br> Nirmal JS<br> joesnirmal@(protected)<br> <br> </font></tt> <br>
|
|