Hi,

If I run an XML document containing an entity declaration through xmllint I get this error:

namespace warning : Namespace default prefix was not found
<rect x='.5' y='.5' width='29' height='39' fill='black' stroke='red'/>
                                                                    ^
Here is the document:

<?xml version="1.0"?>
<!DOCTYPE svg [
        <!ENTITY Smile "
<rect x='.5' y='.5' width='29' height='39' fill='black' stroke='red'/>
">
]>
<svg xmlns="http://www.w3.org/2000/svg";>
    <g transform="translate(20,40)">&Smile;</g>
</svg>

This looks innocent to me, am I missing something obvious? I would assume that the entity expansion would take place first before namespace processing (conceptually at least) and so the elements in the entity would inherit the same default namespace prefix. Is this wrong?

Best regards,

Michael

--
Prince: Print with CSS!
http://www.princexml.com
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to