classpathx-xml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-xml] tests


From: Musachy Barroso
Subject: [Classpathx-xml] tests
Date: Wed, 4 Aug 2004 03:17:00 +0000

Some of this SAX tests are driving me crazy..like this one, on this input:

<?xml version='1.0' standalone='yes'?>
    <!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [
        <!--
            attribute needs defaulting
         -->
    ]>
<attributes/>
<?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>

the SAX test is expecting the parser to accept the xml file(!?), the
header of the test reads: " Tests the Standalone Document Declaration
VC, ensuring that attributes needing defaulting cause a validity
error."

The funny thing is that Aelfred was passing these tests, after "fixing
it" to comply to the spec now they are failing. If someone knows what
is going on here please advise.

thanks

musachy 

-- 
"Hey you! Would you help me to carry the stone?"
                                                         Pink Floyd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]