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

bad tests?

From: Musachy Barroso <musachy@gmail.com>
Date: Wed, 11 Aug 2004 23:39:21 +0000
Message-ID: <d8bdeb6f040811163930ef5f06@mail.gmail.com>
To: public-xml-testsuite@w3.org


I'm having problem with some tests in ../invalid/sun (I don't have the
exact list now but I will send it later), this is one of them

<?xml version='1.0' standalone='yes'?>
  <!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [
          attribute needs defaulting
<?pi equals three?>

and with this dtd:

<?xml version="1.0" encoding="UTF-8"?>
  <!ELEMENT root (child|attributes)*>
  <!ELEMENT child (#PCDATA)>
  <!ELEMENT attributes EMPTY>
  <!ATTLIST attributes
      token           (a|b|c)         "a"
      notation        (nonce|foo|bar) #IMPLIED
      nmtoken         NMTOKEN         #IMPLIED
      nmtokens        NMTOKENS        #IMPLIED
      id              ID              #IMPLIED
      idref           IDREF           #IMPLIED
      idrefs          IDREFS          #IMPLIED
      entity          ENTITY          #IMPLIED
      entities        ENTITIES        #IMPLIED
      cdata           CDATA           #IMPLIED

  <!ENTITY internal   " internal&number; ">
  <!ENTITY number     "42">

  <!NOTATION nonce    SYSTEM "file:/dev/null">
  <!NOTATION foo      PUBLIC "-//public id//foo" "file:/dev/null">
  <!NOTATION bar      SYSTEM "file:/dev/tty">

  <!ENTITY unparsed-1 PUBLIC "-//some public//ID" "file:/dev/console"
                      NDATA nonce>
  <!ENTITY unparsed-2 SYSTEM "scheme://host/data"
                      NDATA foo>


Here the conformance test is expecting the parser to accept the input
file as valid. Maybe I'm missing something but isn't that against the
VC in Sec 4.9? Besides that the header text of the test says that the
test must fail. (There are others related to this one)



"Hey you! Would you help me to carry the stone?"
                                                        Pink Floyd
Received on Thursday, 12 August 2004 10:43:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:44:22 UTC