OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] DTD parameter entities

[ Lists Home | Date Index | Thread Index ]

At 14:45 22.4.2004, you wrote:
>This is well-formed but not valid: the rule that a declaration must
>end in the same entity it starts in is a validity constraint.
>
>RXP will report this if you use the -V flag (at least recent versions
>will, I can't remember when I implemented that check).

True, my windows executable (v 1.2.5) catches this when I turn validation
on with -v flag:

Warning: Attlist declaration ends in different entity from that in which it 
star
ts in entity "CLOSE" defined at line 2 char 1 of file:///C:/temp/petest.dtd
in unnamed entity at line 6 char 58 of file:///C:/temp/petest.dtd

It is this "not from the same entity thing" that makes %ATTLIST; and 
%CLOSE; illegal (and
making any DTD declaration start like <!ELEMENT or <[IGNORE[ to be written 
as PE reference illegal).
Same thing that makes splitting general entity references like <!ENTITY e1 
"<!--"> and <!ENTITY e2 "-->">
illegal, is this true?
but shouldn't this be a well-formedness error?


with respect,
Toni Uusitalo






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS