[XOM-interest] Problem with "Missing scheme in absolute URI reference"
Elliotte Harold
elharo at metalab.unc.edu
Thu Jan 1 17:14:49 EST 2009
Peter Murray-Rust wrote:
> Elliotte Harold wrote:
>> Peter Murray-Rust wrote:
>>
>>> "<?xml version='1.0' encoding='UTF-8'?>"+
>>> "<!DOCTYPE svg SYSTEM
>>> \"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd\">"+
>>>
>>> "<svg/>",
>>
>> The problem with this one seems to be that Xerces is passing
>> "%SVGNamespace;" as the namespace URL for the root element, rather than
>> "http://www.w3.org/svg/whatever". This looks like an unresolved
>> parameter entity reference. Possibly it's a Xerces bug. I still need to
>> look further. But it does still feel like there's a real bug here that
>> XOM is warning you about.
>
I may have spoken too soon. libxml agrees with xerces:
~/tmp$ xmllint --loaddtd tests.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg SYSTEM
"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
<svg xmlns="%SVGNamespace;"/>
There's still a real bug here, but it's likely in the DTD design, not
Xerces. Pretty obviously, the DTD does not say what its authors
intended. Again, I claim this as a win for XOM, since it detected the
bug when both Xerces and libxml let it pass without comment. :-)
--
Elliotte Rusty Harold elharo at metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA
More information about the XOM-interest
mailing list