layouts.xsd 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  9. <xs:element name="page_layouts">
  10. <xs:annotation>
  11. <xs:documentation>
  12. The root node for page layouts
  13. </xs:documentation>
  14. </xs:annotation>
  15. <xs:complexType>
  16. <xs:sequence>
  17. <xs:element name="layout" type="layoutType" minOccurs="1" maxOccurs="unbounded" />
  18. </xs:sequence>
  19. </xs:complexType>
  20. <xs:key name="layout-id">
  21. <xs:selector xpath="layout" />
  22. <xs:field xpath="@id" />
  23. </xs:key>
  24. <xs:unique name="layoutType">
  25. <xs:selector xpath="layout"/>
  26. <xs:field xpath="@id"/>
  27. </xs:unique>
  28. </xs:element>
  29. <xs:complexType name="layoutType">
  30. <xs:annotation>
  31. <xs:documentation>
  32. The definition of a layout, with a label, template and layout handle
  33. </xs:documentation>
  34. </xs:annotation>
  35. <xs:all>
  36. <xs:element name="label" type="translatableType" />
  37. </xs:all>
  38. <xs:attribute name="id" type="xs:string" use="required" />
  39. </xs:complexType>
  40. <xs:complexType name="translatableType">
  41. <xs:simpleContent>
  42. <xs:extension base="xs:string">
  43. <xs:attribute name="translate" use="optional" fixed="true" type="xs:boolean" />
  44. </xs:extension>
  45. </xs:simpleContent>
  46. </xs:complexType>
  47. </xs:schema>