diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-03 20:10:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-03 20:10:52 +0200 |
commit | 3717fce14ff732658d542c13890b226c8367e272 (patch) | |
tree | fea72a29626249bdf2961ae7ce0fb15891ad41cd /tests/schema/union/test-001.xsd | |
parent | e4f4f0bed9befbde2117af6f128d9323be3f1638 (diff) |
Resolve anonymous bases in the multi-schema compilation
Also, resolve anonymous specialization arguments (list and union).
Diffstat (limited to 'tests/schema/union/test-001.xsd')
-rw-r--r-- | tests/schema/union/test-001.xsd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/schema/union/test-001.xsd b/tests/schema/union/test-001.xsd new file mode 100644 index 0000000..00fd8ce --- /dev/null +++ b/tests/schema/union/test-001.xsd @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test"> + + <!-- Test resolution of anonymous argument types. --> + + <simpleType name="list"> + <list> + <simpleType> + <union memberTypes="int t:enum"/> + </simpleType> + </list> + </simpleType> + + <simpleType name="enum"> + <restriction base="string"> + <enumeration value="male"/> + <enumeration value="female"/> + </restriction> + </simpleType> + +</schema> |