Skip Menu |

This queue is for tickets about the XML-ParseDTD CPAN distribution.

Report information
The Basics
Id: 5358
Status: resolved
Priority: 0/
Queue: XML-ParseDTD

People
Owner: Nobody in particular
Requestors: rroggenb [...] mathematik.uni-osnabrueck.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Tue, 17 Feb 2004 12:17:25 +0100
From: Robert Roggenbuck <rroggenb [...] mathematik.uni-osnabrueck.de>
To: bug-XML-ParseDTD [...] rt.cpan.org
Subject: recognizing the content-model ALL
Hi, I just installed XML::ParseDTD 0.1.3 and tried to parse a quiet simple DTD (containing only ELEMENT- and ATTLIST-Definitions). While there so parsing error arise the elements I declared with the content-model ALL are not part of the list I recieve from get_document_tags(). Also it seems to me that a "\t" is not allowed between the attribute type and the attribute description of an ATTLIST declaration. Example: <!ATTLIST dir xml:lang CDATA #REQUIRED Show quoted text
>
If a "\t" is between CDATA and #REQUIRED the attribute xml:lang is not listed as an attribute of dir. (An error does not arise also. I check every call with errstr().) Can You explain these problems and solve them? My DTD and my test parser is appended. Best Whishes Robert Roggenbuck -- =========================================== Robert Roggenbuck, M.A. Fachbereich Mathematik / Informatik Universitaet Osnabrueck rroggenb@mathematik.uni-osnabrueck.de ===========================================
[rroggenb@mathematik.uni-osnabrueck.de - Tue Feb 17 06:18:18 2004]: Show quoted text
> Hi, > > I just installed XML::ParseDTD 0.1.3 and tried to parse a quiet simple > DTD (containing only ELEMENT- and ATTLIST-Definitions). While there no > parsing error arise the elements I declared with the content-model ALL > are not part of the list I recieve from get_document_tags().
Sorry for mentioning the content model "ALL": it does not exists. Replace it with "ANY" and the bug report is still valid. The content model "ALL" I found in the O'Reilly book "Learning XML" by Erik T. Ray, 1st Ed. 2001. May be this is corrected in a later edition. Best Whishes Robert Roggenbuck
[rroggenb@mathematik.uni-osnabrueck.de - Tue Feb 17 06:18:18 2004]: Show quoted text
> Hi, > > I just installed XML::ParseDTD 0.1.3 and tried to parse a quiet simple > DTD > (containing only ELEMENT- and ATTLIST-Definitions). While there so > parsing error > arise the elements I declared with the content-model ALL are not part > of the > list I recieve from get_document_tags(). > > Also it seems to me that a "\t" is not allowed between the attribute > type and > the attribute description of an ATTLIST declaration. Example: > <!ATTLIST dir > xml:lang CDATA #REQUIRED
> >
> If a "\t" is between CDATA and #REQUIRED the attribute xml:lang is not > listed as > an attribute of dir. (An error does not arise also. I check every call > with > errstr().) > > Can You explain these problems and solve them? My DTD and my test > parser is > appended. > > Best Whishes > > Robert Roggenbuck > >
moin, i guess i can write in german... moechte mir das problem gerne naeher anschauen aber ich finde die angehaengte dtd und den test parser nicht. kannst du mir das nochmal per email schicken? vielleicht bin ich nur zu bloed fuer dieses rt.cpan.org. es ist recht wahrscheinlich das da noch fehler in dem modul sind, habe es nicht so ausfuehrlich getestet mangels vernuenftiger dtds. gruss, moritz sinn