page_layout.xsd 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  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"/>
  12. <xs:complexType name="pageLayoutType">
  13. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  14. <xs:element ref="referenceContainer" minOccurs="0" maxOccurs="unbounded"/>
  15. <xs:element name="container" type="containerType" minOccurs="0" maxOccurs="unbounded"/>
  16. <xs:element ref="update" minOccurs="0" maxOccurs="unbounded"/>
  17. <xs:element ref="move" minOccurs="0" maxOccurs="unbounded"/>
  18. <xs:element name="head" type="headType" minOccurs="0" maxOccurs="unbounded"/>
  19. <xs:element name="body" type="bodyType" minOccurs="0" maxOccurs="unbounded"/>
  20. </xs:sequence>
  21. </xs:complexType>
  22. <xs:element name="layout" type="pageLayoutType">
  23. <xs:unique name="containerKey">
  24. <xs:selector xpath=".//container"/>
  25. <xs:field xpath="@name"/>
  26. </xs:unique>
  27. </xs:element>
  28. </xs:schema>