# file : tests/schema/union.testscript # license : GNU GPL v2 + exceptions; see accompanying LICENSE file : basic : { cat <=test.xsd; EOI $* test.xsd >>EOO primary { namespace test { union u1 http://www.w3.org/2001/XMLSchema#int http://www.w3.org/2001/XMLSchema#string union u2 { enumeration : http://www.w3.org/2001/XMLSchema#token { enumerator one } } { enumeration : http://www.w3.org/2001/XMLSchema#string { enumerator two } } union u3 http://www.w3.org/2001/XMLSchema#int test#u1 { enumeration : http://www.w3.org/2001/XMLSchema#token { enumerator one } } { enumeration : http://www.w3.org/2001/XMLSchema#string { enumerator two } } } } EOO } : anonymous : { cat <=test.xsd; EOI $* test.xsd >>EOO primary { namespace test { list list { union http://www.w3.org/2001/XMLSchema#int test#enum } enumeration enum: http://www.w3.org/2001/XMLSchema#string { enumerator male enumerator female } } } EOO }