You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Neil Delima <nd...@ca.ibm.com> on 2003/11/08 04:13:13 UTC

A possible bug in XML notations





A validation error is not reported for the violation of the validity
constraint: Unique Notation Name: Only one notation declaration can declare
a given Name [1].

<!DOCTYPE foo [
<!ELEMENT foo ANY>
<!NOTATION one SYSTEM "file:///fil">
<!NOTATION one SYSTEM "file:///fil">
]>
<foo/>

Proposed Patch:

(See attached file: XMLDTDProcessor.diff)     (See attached file:
XMLMessages.diff)

Thanks,
Neil Delima / IBM


[1] http://www.w3.org/TR/xml11/#UniqueNotationName

Re: A possible bug in XML notations

Posted by Michael Glavassevich <mr...@apache.org>.
Thanks Neil.

We also weren't reporting validation errors for the validity constraint:
No Notation on Empty Element [1]. I've integrated your patch with fix for
this other validity constraint. I made a few modifications to your patch
so that the parser reports the error as soon as it encounters it instead
of waiting until the end of the DTD.

[1] http://www.w3.org/TR/REC-xml#NoNotationEmpty

On Fri, 7 Nov 2003, Neil Delima wrote:

> A validation error is not reported for the violation of the validity
> constraint: Unique Notation Name: Only one notation declaration can declare
> a given Name [1].
>
> <!DOCTYPE foo [
> <!ELEMENT foo ANY>
> <!NOTATION one SYSTEM "file:///fil">
> <!NOTATION one SYSTEM "file:///fil">
> ]>
> <foo/>
>
> Proposed Patch:
>
> (See attached file: XMLDTDProcessor.diff)     (See attached file:
> XMLMessages.diff)
>
> Thanks,
> Neil Delima / IBM
>
>
> [1] http://www.w3.org/TR/xml11/#UniqueNotationName

---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org