You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Maik Schürer proveo GmbH <Ma...@proveo.de> on 2004/11/09 11:44:37 UTC

apostrophe in and <desc></h1><pre>I think I found a small bug in tooltips with apostrophes coming from <title> and <desc> elements. While " and &quot; are displayed as quotes correctly e.g., ' and &apos; are not displayed as apostrophes but as string "&apos". Maik --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For additional commands, e-mail: batik-users-help@xml.apache.org </pre><hr/> <h2>Re: apostrophe in <title> and <desc></h2> <b>Posted by Thomas DeWeese <Th...@Kodak.com>.</b><hr/><pre>Maik Schürer wrote: >> We don't really need to quite the apos since these will never be >>in attribute values, so I've commented this out. > > but it's not a attribute, it is the tag body > <title>I want to say 'hello' and &apos;world&apos;</title> By the time we get this the XML parser will have "expanded" "&apos;" to "'". So we get: "I want to say 'hello' and 'world'". But before we set the label on the tooltip we 'requote' the problematic characters so the text should go to: "I want to say &apos;hello&apos; and &apos;world&apos;" Which should display fine, but there appears to be a bug in the handling of "&apos;" so you get "&apos". Since I think this will only ever end up in a tag body it is safe for us to simply skip the requoting of "'" - which is what I did locally, and will deliever at some point. --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For additional commands, e-mail: batik-users-help@xml.apache.org </pre><hr/> <h2>Re: apostrophe in <title> and <desc></h2> <b>Posted by Maik Schürer <Ma...@proveo.de>.</b><hr/><pre>> We don't really need to quite the apos since these will never be > in attribute values, so I've commented this out. but it's not a attribute, it is the tag body <title>I want to say 'hello' and &apos;world&apos;</title> Maik ----- Original Message ----- From: "Thomas DeWeese" <Th...@Kodak.com> To: "Batik Users" <ba...@xml.apache.org> Sent: Tuesday, November 09, 2004 3:04 PM Subject: Re: apostrophe in <title> and <desc> Maik Schürer proveo GmbH wrote: > I think I found a small bug in tooltips with apostrophes coming from <title> > and <desc> elements. > While " and &quot; are displayed as quotes correctly e.g., > ' and &apos; are not displayed as apostrophes but as string "&apos". This is very odd but true! We don't really need to quite the apos since these will never be in attribute values, so I've commented this out. I can't understand why the JDK knows the other entities but not this one! --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For additional commands, e-mail: batik-users-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For additional commands, e-mail: batik-users-help@xml.apache.org </pre><hr/> <h2>Re: apostrophe in <title> and <desc></h2> <b>Posted by Thomas DeWeese <Th...@Kodak.com>.</b><hr/><pre>Maik Schürer proveo GmbH wrote: > I think I found a small bug in tooltips with apostrophes coming from <title> > and <desc> elements. > While " and &quot; are displayed as quotes correctly e.g., > ' and &apos; are not displayed as apostrophes but as string "&apos". This is very odd but true! We don't really need to quite the apos since these will never be in attribute values, so I've commented this out. I can't understand why the JDK knows the other entities but not this one! --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For additional commands, e-mail: batik-users-help@xml.apache.org </pre><hr/> </body> </html>