W3C home > Mailing lists > Public > public-xml-testsuite@w3.org > August 2005

ENTITIES attribute for sun/not-wf/encoding07.xml

From: Joe Schafer <joe@joeschafer.com>
Date: Sat, 20 Aug 2005 13:55:51 -0500
Message-ID: <43077CB7.5040500@joeschafer.com>
To: public-xml-testsuite@w3.org

I believe I have found a minor problem with the description of the 
sun/not-wf/encoding07.xml test in the sun/sun-not-wf.xml file.

The description of the test is:

<TEST URI="not-wf/encoding07.xml" ID="encoding07" TYPE="not-wf" 
SECTIONS="4.3.1 [77]" ENTITIES="parameter">
    Text declarations (which optionally begin any external entity)
    are required to have "encoding=...". </TEST>

I believe that the ENTITIES="parameter" is wrong because the test does 
not even contain any parameter entity declarations or references.  It 
does however have an external general entity declaration and a reference 
to it. So I believe the ENTITIES attribute should be set to "general".

Joe Schafer
joe@joeschafer.com

P.S.  Here's the test files for fast reference.

encoding07.xml:
<!DOCTYPE root [
    <!ELEMENT root EMPTY>

    <!--
    reusing this entity; it's got no markup decls,
    so it's legal except for a missing "encoding=...".
    -->
    <!ENTITY empty SYSTEM "dtd07.dtd">
]>
<root>&empty;</root>

dtd07.dtd:
<?xml version="1.0"?>
<!--
    "encoding=..." is mandatory in text declarations.

    All external entities (parameter, general) have optional text
    declarations; only the document entity may omit this declaration.
-->
Received on Saturday, 20 August 2005 18:54:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:22:04 GMT