Kasimier T. Buchcik | 76d73f5 | 2005-08-09 13:56:25 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | No error reported. |
| 4 | |
| 5 | Seems like <moo> is accepted, but should not, since "##other" rules out |
| 6 | elements in no namespace. |
| 7 | |
| 8 | Xerces reports: |
| 9 | any-err-2.xml:18,8: (Error) cvc-complex-type.2.4.a: Invalid content starting |
| 10 | with element 'moo'. |
| 11 | One of '{"urn:test:foo":bar, WC[##other:"urn:test:foo"]}' is expected. |
| 12 | |
| 13 | --> |
| 14 | <foo:foo xmlns:foo="urn:test:foo" xmlns:moo="urn:test:moo" |
| 15 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 16 | xsi:schemaLocation="urn:test:foo any7_2.xsd"> |
| 17 | <foo:bar/> |
| 18 | <moo:moo/> |
| 19 | </foo:foo> |
| 20 | |