Skip to content

Commit 4b2cc99

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1255 from magento-engcom/2.1-develop-prs
Public Pull Requests: #9718
2 parents 3977d8d + a47a9ce commit 4b2cc99

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

lib/internal/Magento/Framework/View/Layout/etc/layout_merged.xsd

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
-->
88
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
99
<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"/>
1012

1113
<xs:element name="layout">
1214
<xs:annotation>
@@ -20,29 +22,31 @@
2022
</xs:sequence>
2123
</xs:complexType>
2224
<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"/>
2527
</xs:key>
2628
</xs:element>
2729

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>
4650

4751
<xs:complexType name="handleType">
4852
<xs:annotation>

0 commit comments

Comments
 (0)