Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-16 Thread Stefan
Pid schrieb: Stefan wrote: Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, Stefan wrote: Christopher Schultz schrieb: 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

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-15 Thread David Smith
Pid wrote: Stefan wrote: Christopher Schultz schrieb: Stefan, Stefan wrote: Christopher Schultz schrieb: 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. I don't see the difference,

ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Hello, for sure, the problem is well known. jspx pages turn the amp; in simple which causes a lot of problems. See http://www.lunatech-research.com/archives/2006/01/20/jsp-xml-rant for details. How to avoid this problems? Or just live with it? Thanks -- Stefan

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Leon Rosenberg
correct me if i wrong, but isn't amp; forbidden in xml anyway? Leon On 2/14/07, Stefan [EMAIL PROTECTED] wrote: Hello, for sure, the problem is well known. jspx pages turn the amp; in simple which causes a lot of problems. See http://www.lunatech-research.com/archives/2006/01/20/jsp-xml-rant

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: correct me if i wrong, but isn't amp; forbidden in xml anyway? Nope. It's one of the only entities defined in XML (amp;, lt;, gt;, and quot;, I think). I'm not sure why the OP thinks this is an error. If you put amp;

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Robert Koberg
On Wed, 14 Feb 2007 12:24:43 -0500, Leon Rosenberg [EMAIL PROTECTED] wrote: correct me if i wrong, but isn't amp; forbidden in xml anyway? you're wrong. Leon On 2/14/07, Stefan [EMAIL PROTECTED] wrote: Hello, for sure, the problem is well known. jspx pages turn the amp; in simple

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread David Smith
Ok... you are wrong. An by itself is wrong. It's a hack, but you end up having to do amp;amp; Seems like these should be preserved instead of decoded when the output is x/html. I can see it getting real ugly if you have to process a document through several transforms. But that's just

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: Seems like these should be preserved instead of decoded when the output is x/html. If the 's were preserved, then how would you actually emit an '' character? I think that the OP

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Nicholas Sushkin
He doesn't want to see 'amp;', he wants to see '' in his browser rendering an XHTML document produced by an JSPX page. So, the point of the post was probably that XHTML serializer of JSPX output should be more XML-like and serialize '' as 'amp;', not as ''. On Wednesday 14 February 2007 12:38,

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Nicholas Sushkin schrieb: He doesn't want to see 'amp;', he wants to see '' in his browser rendering an XHTML document produced by an JSPX page. So, the point of the post was probably that XHTML serializer of JSPX output should be more XML-like and serialize '' as 'amp;', not as ''. On

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Leon Rosenberg
On 2/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: Seems like these should be preserved instead of decoded when the output is x/html. If the 's were preserved, then how would you actually emit an '' character?

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: Seems like these should be preserved instead of decoded when the output is x/html. If the 's were preserved, then how would you actually emit an '' character? I think that the OP and the author of the rant against JSPXs

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
David Smith schrieb: Ok... you are wrong. An by itself is wrong. It's a hack, but you end up having to do amp;amp; Seems like these should be preserved instead of decoded when the output is x/html. I can see it getting real ugly if you have to process a document through several

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: On 2/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: If the 's were preserved, then how would you actually emit an '' character? #; the amp; is not xml its html. It's both, actually. Btw, isn't allowed

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, 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

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Leon Rosenberg schrieb: On 2/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: ... #; the amp; is not xml its html. Btw, isn't allowed in html as well, for example in links. regards Leon ... - To start a new

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, Stefan wrote: Christopher Schultz schrieb: 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. I don't see the difference, and I think that the OP is

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Leon Rosenberg
On 2/14/07, Stefan [EMAIL PROTECTED] wrote: Leon Rosenberg schrieb: On 2/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: ... #; the amp; is not xml its html. Btw, isn't allowed in html as well, for example in links. regards Leon ...

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Robert Koberg schrieb: On Wed, 14 Feb 2007 15:05:02 -0500, Christopher Schultz [EMAIL PROTECTED] 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

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, 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

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Leon Rosenberg
On 2/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: On 2/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: If the 's were preserved, then how would you actually emit an '' character? #; the amp; is not

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Robert Koberg
On Wed, 14 Feb 2007 15:05:02 -0500, Christopher Schultz [EMAIL PROTECTED] 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

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Stefan
Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, Stefan wrote: Christopher Schultz schrieb: 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. I don't see the

Re: ampersand (amp;) handling in jspx - any workaround?

2007-02-14 Thread Pid
Stefan wrote: Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan, Stefan wrote: Christopher Schultz schrieb: 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. I don't