diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-04-15 13:47:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-04-15 13:47:31 +0200 |
commit | 4c174428379af308926ec70bc5b58539a1863abf (patch) | |
tree | 0f2aeaa68b28e0c86925fd4ae0e2d893d020efdc /tests/schema/enumeration/test-000.std | |
parent | 8b5538ed49925aaf9fa22e961bd632bed8458184 (diff) |
Implement enum synthesis from union
A union which has enumerations with a common base as members can
be transformed to an equivalent enumeration.
Diffstat (limited to 'tests/schema/enumeration/test-000.std')
-rw-r--r-- | tests/schema/enumeration/test-000.std | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/schema/enumeration/test-000.std b/tests/schema/enumeration/test-000.std new file mode 100644 index 0000000..64e3065 --- /dev/null +++ b/tests/schema/enumeration/test-000.std @@ -0,0 +1,62 @@ +primary +{ + namespace test + { + complex common-base: http://www.w3.org/2001/XMLSchema#string + { + } + complex base: test#common-base + { + } + enumeration one: test#base + { + <romance documentation> + enumerator romance + enumerator fiction + enumerator horror + } + enumeration two: test#common-base + { + enumerator horror + enumerator history + enumerator philosophy + } + enumeration three: http://www.w3.org/2001/XMLSchema#anyURI + { + enumerator foo + enumerator bar + } + enumeration union0: test#common-base + { + <romance documentation> + enumerator romance + enumerator fiction + enumerator horror + enumerator history + enumerator philosophy + } + <union1 documentation> + enumeration union1: test#common-base + { + <romance documentation> + enumerator romance + enumerator fiction + enumerator horror + enumerator history + enumerator philosophy + } + union union2 test#one test#union1 test#common-base + union union3 test#one test#three + complex complex1 + { + element a + [1, 1] sequence + { + [1, 1] element a test#union1 + } + } + complex complex2: test#union1 + { + } + } +} |