tests

Musachy Barroso <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.xml
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.