Hello Brendt,
thanks a lot for the quick response!
On Fri Apr 30 23:59:18 2010, Brendt Wohlberg wrote:
Show quoted text> Could you please check whether you can find any other problems in
> handling of the SVG DTD by 0.09b1? If it seems fine, I will release
> 0.09 on CPAN. One request: if you do find any more problems, please
> try to send a simple test DTD which illustrates the bug, as this will
> enable me to fix it significantly faster.
I have tried (rather superficially) a few things that I am likely to use
in the future like elementlist, attlist, contentmodel and so on, and it
seems to work fine except one thing. The contentspec method of
XML::DTD::Element does not expand entities. The script at the end of
this messages prints out "%SVG.svg.content;". I don't think this is
intended. I have tried to distill an example DTD (attached) from the SVG
DTD and hope I did not mess it up. As you said, the SVG DTD is rather
complex. However, the script on the whole DTD shows the same behaviour.
Aside from this, I haven't found any issues. I just have a few
questions/feature requests which I will send separately by email. Thanks
for your work on XML::DTD.
Best wishes
Lutz
perl script:
use strict;
use warnings;
use XML::DTD;
my $dtd=new XML::DTD;
#open(DTD, "<", "svg11-flat-20030114.dtd");
open(DTD, "<", "example.dtd");
$dtd->fread(*DTD);
close(DTD);
print $dtd->element('svg')->contentspec, "\n";