tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Koberg" <>
Subject Re: ampersand (&amp;) handling in jspx - any workaround?
Date Wed, 14 Feb 2007 20:11:36 GMT
On Wed, 14 Feb 2007 15:05:02 -0500, Christopher Schultz  
<> wrote:

> Stefan wrote:
>> but where do I need a single "&" in the generated XML. That's forbidden
>> a causes the problems. Can You come up a use case?
> Oh, I'm not saying that it's a good idea. I actually agree that emitting
> a single & doesn't make any sense.
> Compare this to XSLT. If you want a stylesheet to emit an '&', don't you
> use &amp;? And if you want to emit '&amp;' you have to double it.

No, if your output method is XML (or XHTML in XSL v2) then it does not  
convert it to &. If your output is HTML or text then it does.

Why not just use XSL or something like Velocity or Freemarker?


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message