mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00

* test/schemas/any7_2.xml test/schemas/any6_2.xsd test/schemas/any8_1.xsd test/schemas/any8_0.xml: Added some more tests for element wildcards.
21 lines
537 B
XML
21 lines
537 B
XML
<?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 any7_2.xsd">
|
|
<foo:bar/>
|
|
<moo:moo/>
|
|
</foo:foo>
|
|
|