mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-31 13:47:30 +03:00
11162b7ce7
* xmlschemastypes.c: Added creation of the content type of xs:anyType. This is needed when trying to extend xs:anyType (although it makes no sense to extend it; IMHO the schema people should have ruled this out). This was reported by Yong Chen to the mailing list. * xmlschemas.c: Fixed handling of xs:anyType in xmlSchemaCheckCOSCTExtends() (reported by Young Chen). Tiny adjustment to an error report output. * test/schemas/extension2* result/schemas/extension2*: Added a test case provided by Young Chen.
18 lines
539 B
XML
18 lines
539 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns="http://myns"
|
|
targetNamespace="http://myns"
|
|
elementFormDefault="qualified"
|
|
attributeFormDefault="unqualified"
|
|
xml:lang="en">
|
|
|
|
<xs:complexType name="dataInlineType">
|
|
<xs:complexContent>
|
|
<xs:extension base="xs:anyType"/>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
|
|
<xs:element name="foo" type="dataInlineType"/>
|
|
|
|
</xs:schema>
|