|
7 | 7 | -->
|
8 | 8 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
9 | 9 | <xs:include schemaLocation="urn:magento:framework:View/Layout/etc/elements.xsd"/>
|
| 10 | + <xs:include schemaLocation="urn:magento:framework:View/Layout/etc/head.xsd"/> |
| 11 | + <xs:include schemaLocation="urn:magento:framework:View/Layout/etc/body.xsd"/> |
10 | 12 |
|
11 | 13 | <xs:element name="layout">
|
12 | 14 | <xs:annotation>
|
|
20 | 22 | </xs:sequence>
|
21 | 23 | </xs:complexType>
|
22 | 24 | <xs:key name="handleName">
|
23 |
| - <xs:selector xpath="handle"></xs:selector> |
24 |
| - <xs:field xpath="@id"></xs:field> |
| 25 | + <xs:selector xpath="handle"/> |
| 26 | + <xs:field xpath="@id"/> |
25 | 27 | </xs:key>
|
26 | 28 | </xs:element>
|
27 | 29 |
|
28 |
| - <xs:element name="handle" type="handleType"> |
29 |
| - <xs:unique name="blockKey"> |
30 |
| - <xs:selector xpath=".//block"/> |
31 |
| - <xs:field xpath="@name"/> |
32 |
| - </xs:unique> |
33 |
| - <xs:unique name="containerKey"> |
34 |
| - <xs:selector xpath=".//container"/> |
35 |
| - <xs:field xpath="@name"/> |
36 |
| - </xs:unique> |
37 |
| - <xs:keyref name="blockReference" refer="blockKey"> |
38 |
| - <xs:selector xpath=".//referenceBlock"/> |
39 |
| - <xs:field xpath="@name"/> |
40 |
| - </xs:keyref> |
41 |
| - <xs:keyref name="containerReference" refer="containerKey"> |
42 |
| - <xs:selector xpath=".//referenceContainer"/> |
43 |
| - <xs:field xpath="@name"/> |
44 |
| - </xs:keyref> |
45 |
| - </xs:element> |
| 30 | + <xs:element name="handle" type="handleType" /> |
| 31 | + |
| 32 | + <xs:complexType name="layoutType"> |
| 33 | + <xs:annotation> |
| 34 | + <xs:documentation> |
| 35 | + Layout Type definition |
| 36 | + </xs:documentation> |
| 37 | + </xs:annotation> |
| 38 | + <xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 39 | + <xs:element ref="referenceContainer" minOccurs="0" maxOccurs="unbounded"/> |
| 40 | + <xs:element ref="container" minOccurs="0" maxOccurs="unbounded"/> |
| 41 | + <xs:element ref="update" minOccurs="0" maxOccurs="unbounded"/> |
| 42 | + <xs:element ref="remove" minOccurs="0" maxOccurs="unbounded"/> |
| 43 | + <xs:element ref="move" minOccurs="0" maxOccurs="unbounded"/> |
| 44 | + <xs:element ref="block" minOccurs="0" maxOccurs="unbounded"/> |
| 45 | + <xs:element ref="referenceBlock" minOccurs="0" maxOccurs="unbounded"/> |
| 46 | + <xs:element name="body" type="bodyType" minOccurs="0" maxOccurs="unbounded"/> |
| 47 | + <xs:element name="head" type="headType" minOccurs="0" maxOccurs="unbounded"/> |
| 48 | + </xs:choice> |
| 49 | + </xs:complexType> |
46 | 50 |
|
47 | 51 | <xs:complexType name="handleType">
|
48 | 52 | <xs:annotation>
|
|
0 commit comments