diff options
Diffstat (limited to 'libxml2/test/schemas/any7_0.xml')
-rwxr-xr-x | libxml2/test/schemas/any7_0.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libxml2/test/schemas/any7_0.xml b/libxml2/test/schemas/any7_0.xml new file mode 100755 index 0000000..288b1e7 --- /dev/null +++ b/libxml2/test/schemas/any7_0.xml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<!-- +No error reported. + +Seems like <moo> is accepted, but should not, since "##other" rules out +elements in no namespace. + +Xerces reports: +any-err-2.xml:18,8: (Error) cvc-complex-type.2.4.a: Invalid content starting +with element 'moo'. +One of '{"urn:test:foo":bar, WC[##other:"urn:test:foo"]}' is expected. + +--> +<foo:foo xmlns:foo="urn:test:foo" xmlns:moo="urn:test:moo" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="urn:test:foo any-2_1.xsd"> + <foo:bar/> + <moo/> +</foo:foo> |