-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 12/10/2011 21:29, Nathan Nadeau a écrit : > Nicolas, > > It seems you are not using anything specific to Xalan in your code at > http://pastebin.com/LfGpWMai, though I may be missing something.
Hi, Real implementation for javax.xml.transform.Transformer is org.apache.xalan.transformer.TransformerImpl on my case. And debug indicate this is this class which escape char. So, i try my chance on this mailing-list, but same question was asked in JDK mailing-list too. > This behavior, according to your code, is actually expected. I agree, this output is the expected most of cases. But not my expectation =( And because I use « transformer.setOutputProperty(OutputKeys.METHOD, "html"); », I expect even more that transformer handles HTML entities and not only XML ones. > To disable entity resolving when reading in the source XML document, see > DocumentBuilderFactory.setExpandEntityReferences(). Thanks a lot for this clue, I will investigate on this way. > Entities and entity references can be quite tricky to work with, and you > must understand what is happening at each level of the XML processing, > from reading in the source XML, to running a transform on the XML, to > outputting the final result. Yes, escaping is just a pain in real world. On my case, the text source is not on my scope… - -- Nicolas VINOT -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOlexgAAoJEK8zQvxDY4P9rncIAMb0yY8u2a9wh7eqSP9U8UE2 664/Cf1M6tqkEbg5csqGO1j2WX5Fq87XLfXd2ACOvUyIVpqSbfXIqhRVFWbq00Sv EYKvh4D05pkxyzEFgOEPMUEjmSKKcMcGCaV0QtVzn4sdV+WTNSKNV0Ckz5Ff5fLG dBR3FwmbJChdK3lfbH6BIx2/L9b/JcWgcjSppsz/dlwT2URmZ7fsbi26LRjAeeW3 UshCs6oZ05KYnZVDqMW1ZBn6lwyVG2JKEZi96oZ7d7/TOt4kryUCwHrF8QFHFy34 yFtqzsRuZiBXLgYWeykhUBcolm9nEvaObyDUSM8Q10NZ69QiGe/MDE08/bdNNPU= =hQBS -----END PGP SIGNATURE-----
