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
I think I found a small bug in tooltips with apostrophes coming from <title>
and <desc> elements.
While " and " are displayed as quotes correctly e.g.,
' and ' 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
Re: apostrophe in and
Posted by Thomas DeWeese <Th...@Kodak.com>.
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 'world'</title>
By the time we get this the XML parser will have "expanded"
"'" 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 'hello' and 'world'"
Which should display fine, but there appears to be a bug in
the handling of "'" 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
Re: apostrophe in and
Posted by Maik Schürer <Ma...@proveo.de>.
> 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 'world'</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 " are displayed as quotes correctly e.g.,
> ' and ' 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
Re: apostrophe in and
Posted by Thomas DeWeese <Th...@Kodak.com>.
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 " are displayed as quotes correctly e.g.,
> ' and ' 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