Committing patch in XALANJ-2271 which fixes a bug in
outputing XML 1.1 attributes.
It is also a general clean-up of code related to whether
particular characters have entities, or should be written
as character entities, etc. The code is tricky because
it all depends on:
> method type (xml, html, text)
> character in a text node?
> character in an XML attribute value?
> character in an HTML URL attribute value?
The old code had a concept that the character was "special"
but put plenty band-aids on that CharInfo API call.
New code has far fewer band-aids. CharInfo basically knows if
the character is mapped to a String (e.g. '<' mapping to "<")
and leave it more explicitly to the methods (e.g. ToXMLStream)
output method (e.g. characters() or writeAttr() ...)
whether it is a character in a text node, or an attribute
value, or
4 files changed