/Sonja Löhr/:
Am Donnerstag, den 22.09.2005, 15:04 +0300 schrieb Stanimir Stamenkov:
<http://xml.apache.org/xalan-j/usagepatterns.html#outputprops>
Isn't there any class one could extend to influence escaping, perhaps
some XyzResolver ?
I always have trouble with decimal entities in the source xml, since in
the output I have things like
&#252;
What kind of troubles? Did you mean ü above? It shouldn't
matter whether the character reference code is in decimal or
hexadecimal form. AFAIK older processors (mostly Web browsers) could
have troubles interpreting the hexadecimal form which I guess is the
reason for the Xalan developers to choose the default decimal form.
I already wrote NoEscapeXYZ classes for jdom XMLOutputter and
commons.betwix.Beanwriter, for xalan there is no such possibility?
I don't know if there's property to configure character references
to be written in hexadecimal form. I haven't tried but I guess one
could configure an "entities" file where instead of general entity
names, the keys are the hexadecimal form of the character reference,
like:
#x20AC=8364
But filling an entry for every single code would be too inefficient.
--
Stanimir