W3C home > Mailing lists > Public > www-svg@w3.org > November 2012

Re: Well-formedness of an entity.

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 14 Nov 2012 16:03:11 -0800
Message-ID: <50A4313F.2090401@mcc.id.au>
To: peasthope@shaw.ca
CC: www-svg@w3.org
peasthope@shaw.ca:
> Iceweasel 16.0.2 in Debian Squeeze accepts
> 	<!ENTITY Sub0 "<svg:tspan font-size='10' dx='0' dy='4'>0</svg:tspan>">
> but complains that
> 	<!ENTITY Sub0 "<svg:tspan font-size='50%' dx='0' dy='4'>0</svg:tspan>">
> is not well-formed.  The "arrow" points to the apostrophe following the %.
>
> The containing document is http://members.shaw.ca/peasthope/Category2.xhtml .
>
> Any explanation or resolution is welcome.

The "%" character in a DTD has a special meaning, it starts a parameter 
entity reference:

   http://www.w3.org/TR/xml/#dt-PERef

so you'll need to escape it as "&#37;".
Received on Thursday, 15 November 2012 00:03:51 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:52 GMT