Umm... That's the second example in my original post. On Wed, 10 Sep 2003 22:52:38 -0700, Bill Barker wrote:
> Does this work: > <img src="foo.jpg" alt="My "quoted" text." /> > > "Rich Unger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> <?xml version="1.0" encoding="utf-8"?> >> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"> >> <html> >> <img src="foo.jpg" alt='My "quoted" text.'/> >> <img src="foo.jpg" alt="My "quoted" text."/> >> <img src="foo.jpg" alt="My "quoted" text."/> >> </html> >> </jsp:root> >> >> All 3 of these lines cause compile errors. I'm using XSLT to generate >> files which _may_ be JSP files (they may be static files, it's determined >> when the xslt runs). Because of this, I'm not particularly enthused about >> manually sticking backslashes in front of my quote characters. >> >> What I want to know is, how does tomcat 4 know to escape the quote marks >> around foo.jpg, as in: >> >> out.write("<img src=\"foo.jpg\" alt='My "quoted" text.'/>"); >> >> ...but not around "quoted"? Is it a bug, or is this an expected compile >> error in my jsp? >> >> Thanks, >> Rich --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
