From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Fri Oct 20 2000 - 08:46:53 EDT
On Thu, Oct 19, 2000 at 11:45:45PM +0200, Daniel Veillard wrote:
>
> On Thu, Oct 19, 2000 at 01:54:39PM -0700, Bill Kendrick wrote:
> >
> > I just installed libxml2-2.2.5 and tried running my little validation test
> > program on an XML version of "The Tragedy of Antony and Cleopatra".
> >
> > Suddenly, I'm getting this over and over again:
> >
> > Element PGROUP content doesn't follow the Dtd
> > Expecting (PERSONA+ , GRPDESCR), got (PERSONA PERSONA PERSONA GRPDESCR )
> >
> >
> > Isn't the "PERSONA PERSONA PERSONA" found in the XML supposed to be
> > covered by "PERSONA+" in the DTD?
>
> Eek ... seems the blank space fix broke something else ...
> Ouch this part is a real pain to debug !
>
> > Daniel, should I e-mail you the XML and DTD files? :)
Actually I like this example a LOT ! Can I include it in the
libxml testsuite ?
> yep, directly to avoid bothering the full ML...
Okay I had a look, first when referencing the DTd directly from
the doctype and asking for validation, no error is raised:
------------------ cleo.xml
<?xml version="1.0"?>
<!DOCTYPE PLAY PUBLIC "xxx" "cleo.dtd">
<PLAY>
[...]
------------------
~/XML -> ./xmllint --noout --valid cleo.xml
~/XML ->
------------------
If removing the DTD reference and asking for a-posteriori validation
then the bug is triggered:
------------------
<?xml version="1.0"?>
<PLAY>
[...]
------------------
~/XML -> ./xmllint --noout --dtdvalid cleo.dtd cleo.xml
Element PGROUP content doesn't follow the Dtd
Expecting (PERSONA+ , GRPDESCR), got (PERSONA PERSONA PERSONA GRPDESCR )
Element PGROUP content doesn't follow the Dtd
[...]
------------------
I found 2 problems, the enclosed patch fixes them !
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | libxml Gnome XML toolkit Tel : +33 476 615 257 | 655, avenue de l'Europe | http://xmlsoft.org/ Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Rpmfind search site http://www.w3.org/People/all#veillard%40w3.org | http://rpmfind.net/
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Fri Oct 20 2000 - 09:43:40 EDT