Project

Profile

Help

Support #4911 » schemaC.xsd

Octavian Nadolu, 2021-02-17 08:20

 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified"
4
    vc:minVersion="1.1" targetNamespace="http://www.namespace.2" xmlns:ns1="http//www.namespace.1"
5
    xmlns:ns2="http://www.namespace.2">
6
    
7
    <xs:import namespace="http//www.namespace.1" schemaLocation="schemaA-11.xsd"/>
8
    <xs:include schemaLocation="SchemaB.xsd"/>
9
    
10
    <xs:element name="root" type="ns2:ProfiledTypeB"/>
11
    <xs:element name="s" type="ns1:Token3">
12
    </xs:element>
13
    
14
    <xs:complexType name="ProfiledTypeB">
15
        <xs:complexContent>
16
            <xs:extension base="ns2:TypeB">
17
                <xs:assert test="ns2:child castable as ns1:Token3"/>
18
            </xs:extension>
19
        </xs:complexContent>
20
    </xs:complexType>
21
    
22
</xs:schema>
(3-3/3)