[jdom-interest] XSL transform is converting my quotes to '

Jason Hunter jhunter at collab.net
Wed May 23 19:14:07 PDT 2001


> <td onClick="javascript:displayMessage(1,&apos;INBOX&apos;)">
> 
> Why is the transformation converting my quotes to the HTML equivilents?
> 
> Is there any way to stop this? Or do I have I coded this wrong.

It's not the transformation doing the conversion.  The XMLOutputter is
doing the change.  It's being conservative and converting all the
pre-defined XML char entities in attribute values.  The output is
semantically equivalent.  

But, considering XMLOutputter always surrounded attribute values with
double-quotes, it doesn't make much sense to escape single-quotes.  I've
just checked in a change so single-quotes in attribute values remain
unaltered on output.

Please try with the latest code from CVS.

-jh-



More information about the jdom-interest mailing list