Hello,

using dom4j I've noticed that within attribute values
apostrophes are replaced by the ' character.

I believe that this is unnecessary, one would only need to encode
the apostrophe this way if this character was also the attribute
value delimiter. Since it appears that the dom4j document model
always uses quotes (and overrides cases where one might
have used apostrophes) it appears that there is no reason
to encode the apostrophes within the attribute value the way
it is done now.

Incidentally this caused me a lot of trouble when trying to use
javascript calls in href attributes. While Mozilla handles
the ' characters properly IE needs an '

Making a long story short, I "fixed" this issue in my
local copy by dropping the corresponding entry
of the escapeAttributeEntities method in XMLWriter.java.

My gut feeling is that this is the correct behavior (at least
most transformers that I tried work the way I described above).

thanks, dom4j is the best

--
Istvan Albert
http://www-users.cs.umn.edu/~ialbert/
Grouplens Research -- University of Minnesota



-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to