Re: Well-formedness of an entity.

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 UTC