[xml] Entities causing default namespace error?
- From: Michael Day <mikeday yeslogic com>
- To: xml gnome org
- Subject: [xml] Entities causing default namespace error?
- Date: Mon, 14 Oct 2013 12:50:49 +1100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]