Re: XML::SAX::PurePerl - DTD parsing bug?
by Duncan Cameron other posts by this author
Feb 13 2002 6:47PM messages near this date
view in the new Beta List Site
Re: Stopping the same questions!!
|
Re: XML::SAX::PurePerl - DTD parsing bug?
On 2002-02-13 Duncan Cameron wrote:
> On 2002-02-13 Aaron Straup Cope wrote:
> >Hi,
> >
> >I am trying to write a parsing widget using XML::SAX::ParserFactory but I
> >can't seem to get past the DTD parsing stage.
> >
> >The parser fails with the following error...
> >
> >101 ->./test
> >DEBUG: PUBID is '-//Aaron Straup Cope//DTD Eatdrinkfeelgood 1.0//EN//XML'
> >DEBUG: PUBIDCHAR is '(?x-ism: [\x20\x0D\x0Aa-zA-Z0-9'()\+,./:=\?;!*\#@\$_%] )'
> >Invalid characters in PUBLIC identifier [Ln: 2, Col: 88]
> >
> >This struck me as sort of odd since the DTD is...
> >
> ><?xml version = "1.0" ?>
> ><!DOCTYPE eatdrinkfeelgood PUBLIC "-//Aaron Straup Cope//DTD Eatdrinkfeelgood 1.0//EN//XML
"
> > "http://www.aaronland.net/food/edfgml/1.0/eatdrinkfeelgood.dtd">
> >
> >....which is currently being parsed without exception by AxKit. To my eyes,
> >it is a prefectly good DTD according to...
> >
> >http://www.ucc.ie/cgi-bin/PUBLIC
> >
> >I spent a little bit of time walking through the code since it seemed like
> >$pubid (DocType.pm, line 53) should not contain "-//Aaron Straup Cope//".
> >
> >I got as far as &XML::SAX::PurePerl::Reader::macth_re when, looking at a
> >data dump, I felt like I'd gotten in over my head.
> >
> >Is this a bug or am I just missing something obvious? Thanks,
> >
> >
> >XML::SAX::ParserFactory 1.00
> >XML::SAX::PurePerl 0.90
> >
> These look to be old versions. PurePerl is now on 1.11 (at least)
>
> # $Id: PurePerl.pm,v 1.11 2002/01/30 12:45:36 matt Exp $
>
> Try upgrading.
Aaron does have the latest VERSION (0.9), I was looking at the CVS revision
number.
The problem sesm to be that the '-' character is not included in the regex
which validates a PublicId.
See Productions.pm, the variable $PubidChar
Regards
Duncan Cameron
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|