author | joehw |
Mon, 13 Oct 2014 14:11:20 -0700 | |
changeset 27037 | 5a6ef51923c4 |
permissions | -rw-r--r-- |
27037
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
1 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
2 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
3 |
<xsd:element name="A" type="X"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
4 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
5 |
<!-- The purpose of this element is: |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
6 |
a) To have a fixed attribute use |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
7 |
b) To have an attribute with a fixed attribute declaration |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
8 |
c) To have a complex type with simple content and a fixed value |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
9 |
d) To have an element declaration with a fixed value |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
10 |
--> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
11 |
<xsd:element name="B" fixed="howdy"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
12 |
<xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
13 |
<xsd:simpleContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
14 |
<xsd:extension base="xsd:string"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
15 |
<xsd:attribute ref="fixedAttr" use="required" fixed="hello"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
16 |
</xsd:extension> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
17 |
</xsd:simpleContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
18 |
</xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
19 |
</xsd:element> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
20 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
21 |
<xsd:element name="D" type="xsd:string" fixed="hey"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
22 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
23 |
<xsd:attribute name="attr" type="xsd:string"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
24 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
25 |
<xsd:attribute name="unparsedEntityAttr" type="xsd:ENTITIES"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
26 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
27 |
<xsd:attribute name="fixedAttr" type="xsd:string" fixed="hello"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
28 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
29 |
<xsd:complexType name="X"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
30 |
<xsd:sequence> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
31 |
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
32 |
</xsd:sequence> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
33 |
<xsd:attribute ref="attr"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
34 |
<xsd:attribute ref="unparsedEntityAttr"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
35 |
</xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
36 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
37 |
<xsd:complexType name="Y"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
38 |
<xsd:complexContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
39 |
<xsd:restriction base="X"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
40 |
<xsd:sequence> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
41 |
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
42 |
</xsd:sequence> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
43 |
<xsd:attribute ref="attr" fixed="typeY"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
44 |
<xsd:attribute ref="unparsedEntityAttr" use="prohibited"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
45 |
</xsd:restriction> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
46 |
</xsd:complexContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
47 |
</xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
48 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
49 |
<!-- Z is the same as X, but is not derived from X. --> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
50 |
<xsd:complexType name="Z"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
51 |
<xsd:sequence> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
52 |
<xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
53 |
</xsd:sequence> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
54 |
<xsd:attribute ref="attr"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
55 |
<xsd:attribute ref="unparsedEntityAttr"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
56 |
</xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
57 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
58 |
<xsd:complexType name="idType"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
59 |
<xsd:complexContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
60 |
<xsd:extension base="X"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
61 |
<xsd:attribute name="idAttr" type="xsd:ID"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
62 |
</xsd:extension> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
63 |
</xsd:complexContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
64 |
</xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
65 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
66 |
<xsd:complexType name="idrefType"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
67 |
<xsd:complexContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
68 |
<xsd:extension base="X"> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
69 |
<xsd:attribute name="idrefAttr" type="xsd:IDREF"/> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
70 |
</xsd:extension> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
71 |
</xsd:complexContent> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
72 |
</xsd:complexType> |
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
73 |
|
5a6ef51923c4
8036951: Xerces Update: XMLSchemaValidator.java and XMLSchemaLoader.java
joehw
parents:
diff
changeset
|
74 |
</xsd:schema> |