xml:id Test Suite for libxml2

This document is the output of runtests.xsl applied to test-suite.xml. See also, the xml:id Conformance Test Suite.

Sun Microsystems Catalog

Test: normal_001[1] FAIL
Expect: “xml:id on para is an ID (te st)”
Result: “”
Test: undecl_001 pass
Test: declar_001 pass
Test: declar_002[2] pass
Test: baddcl_001[3] pass
Test: dupdup_001[4] pass
Test: baddcl_002[5] pass
Test: dupdup_002[6] pass
Test: okchar_001 pass
Test: okchar_002[7] pass
Test: xref___001 pass
Test: normal_002 FAIL
Expect: “xml:id on p is an ID (anid) ”
Result: “”
Test: normal_003[8] FAIL
Expect: “xml:id on para is an ID ( p2) ”
Result: “”

Notes

[1] XSLT cannot perform this test.
[2] Proper evaluation requires a schema-aware processor.
[3] Must generate invalid declared type error.
[4] Should generate duplicate ID error; may report both elements.
[5] Must generate invalid declared type error; proper evaluation requires a schema-aware processor.
[6] Should generate duplicate ID error; may report both elements.
[7] Will fail if an XML 1.0 processor is used.
[8] XSLT cannot perform this test.

Test Details

normal_001 (Norman Walsh, 2005-01-25

Purpose: Check ID normalization

Notes: XSLT cannot perform this test.

undecl_001 (Norman Walsh, 2005-01-25

Purpose: Check that xml:id does not have to be declared

declar_001 (Norman Walsh, 2005-01-25

Purpose: Check that xml:id can be declared correctly with a DTD

declar_002 (Norman Walsh, 2005-01-25

Purpose: Check that xml:id can be declared correctly with a schema

Notes: Proper evaluation requires a schema-aware processor.

baddcl_001 (Norman Walsh, 2005-01-25

Purpose: Check that an incorrect DTD declaration is caught

Notes: Must generate invalid declared type error.

dupdup_001 (Norman Walsh, 2005-01-25

Purpose: Test to see if duplicate IDs are detected.

Notes: Should generate duplicate ID error; may report both elements.

baddcl_002 (Norman Walsh, 2005-01-25

Purpose: Check that an incorrect schema declaration is caught

Notes: Must generate invalid declared type error; proper evaluation requires a schema-aware processor.

dupdup_002 (Norman Walsh, 2005-01-25

Purpose: Test to see if duplicate IDs are detected.

Notes: Should generate duplicate ID error; may report both elements.

okchar_001 (Norman Walsh, 2005-01-25

Purpose: Check that an XML 1.0 document accepts 1.0 IDs

okchar_002 (Norman Walsh, 2005-01-25

Purpose: Check that an XML 1.1 document accepts 1.1 IDs

Notes: Will fail if an XML 1.0 processor is used.

xref___001 (Norman Walsh, 2005-04-08

Purpose: Check that IDREFs work

normal_002 (Norman Walsh, 2005-01-25

Purpose: Check that an ID is normalized

normal_003 (Norman Walsh, 2005-04-08

Purpose: Check that an ID is normalized

Notes: XSLT cannot perform this test.