Re: xml:id test suite

Below are RXP results with irrelevant validity errors removed by hand, and
ID assignments listed.

Thanks for making the test page be legal XML so that I could extract
the test URIs easily!

for t in `lxprintf -e dt/a "%s\n" @href http://www.w3.org/XML/2005/01/xml-id/`
do
  t=http://www.w3.org/XML/2005/01/xml-id/$t
  echo $t
  rxp -V -I -o i $t | lxprintf -e 'attribute[attributeType="ID"]' "%s='%s'\n" localName normalizedValue
   echo
done


http://www.w3.org/XML/2005/01/xml-id/tests/001_normalize.xml
Warning: xml:id error: value "te st" contains a character which is not a name character
 in unnamed entity at line 2 char 27 of http://www.w3.org/XML/2005/01/xml-id/tests/001_normalize.xml
id='te st'

http://www.w3.org/XML/2005/01/xml-id/tests/002_undecl.xml
id='test'

http://www.w3.org/XML/2005/01/xml-id/tests/003_dtd.xml
id='id'

http://www.w3.org/XML/2005/01/xml-id/tests/004_schema.xml
id='id'

http://www.w3.org/XML/2005/01/xml-id/tests/005_errdtdbad.xml
Warning: xml:id error: xml:id attribute must be declared as type ID
 in unnamed entity at line 3 char 26 of http://www.w3.org/XML/2005/01/xml-id/tests/005_errdtdbad.xml

http://www.w3.org/XML/2005/01/xml-id/tests/005_errdup.xml
Warning: xml:id error: duplicate ID attribute value dup
 in unnamed entity at line 3 char 22 of http://www.w3.org/XML/2005/01/xml-id/tests/005_errdup.xml
id='dup'
id='dup'

http://www.w3.org/XML/2005/01/xml-id/tests/006_errschemabad.xml
id='id'

http://www.w3.org/XML/2005/01/xml-id/tests/007_errdup.xml
Warning: xml:id error: duplicate ID attribute value id1
 in unnamed entity at line 5 char 31 of http://www.w3.org/XML/2005/01/xml-id/tests/007_errdup.xml
id='id1'
id='id1'

http://www.w3.org/XML/2005/01/xml-id/tests/008_ok10.xml
id='anid'

http://www.w3.org/XML/2005/01/xml-id/tests/009_ok11.xml
id='id?ok'

http://www.w3.org/XML/2005/01/xml-id/tests/010_okxref.xml
Warning: The ID is2 was referred to but never defined
 (detected at end of body of document http://www.w3.org/XML/2005/01/xml-id/tests/010_okxref.xml)
id='id2'
id='id1'

http://www.w3.org/XML/2005/01/xml-id/tests/011_oknormalize.xml
id='anid'


-- Richard

Received on Tuesday, 25 January 2005 17:49:07 UTC