head.xsd 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:complexType name="linkType">
  10. <xs:attribute name="src" type="xs:string" use="required"/>
  11. <xs:attribute name="defer" type="xs:string"/>
  12. <xs:attribute name="ie_condition" type="xs:string"/>
  13. <xs:attribute name="charset" type="xs:string"/>
  14. <xs:attribute name="hreflang" type="xs:string"/>
  15. <xs:attribute name="media" type="xs:string"/>
  16. <xs:attribute name="rel" type="xs:string"/>
  17. <xs:attribute name="rev" type="xs:string"/>
  18. <xs:attribute name="sizes" type="xs:string"/>
  19. <xs:attribute name="target" type="xs:string"/>
  20. <xs:attribute name="type" type="xs:string"/>
  21. <xs:attribute name="order" type="xs:integer"/>
  22. <xs:attribute name="src_type" type="xs:string"/>
  23. </xs:complexType>
  24. <xs:complexType name="metaType">
  25. <xs:attribute name="content" type="xs:string" use="required"/>
  26. <xs:attribute name="charset" type="xs:string" />
  27. <xs:attribute name="http-equiv" type="xs:string"/>
  28. <xs:attribute name="name" type="xs:string"/>
  29. <xs:attribute name="scheme" type="xs:string"/>
  30. </xs:complexType>
  31. <xs:complexType name="scriptType">
  32. <xs:attribute name="src" type="xs:string" use="required"/>
  33. <xs:attribute name="defer" type="xs:string"/>
  34. <xs:attribute name="ie_condition" type="xs:string"/>
  35. <xs:attribute name="async" type="xs:string"/>
  36. <xs:attribute name="charset" type="xs:string"/>
  37. <xs:attribute name="type" type="xs:string"/>
  38. <xs:attribute name="src_type" type="xs:string"/>
  39. </xs:complexType>
  40. <xs:complexType name="headAttributeType">
  41. <xs:attribute type="xs:string" name="name"/>
  42. <xs:attribute type="xs:string" name="value"/>
  43. </xs:complexType>
  44. <xs:complexType name="srcRemoveType">
  45. <xs:attribute name="src" type="xs:string" use="required"/>
  46. </xs:complexType>
  47. <xs:complexType name="headType">
  48. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  49. <xs:element name="title" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
  50. <xs:element name="css" type="linkType" minOccurs="0" maxOccurs="unbounded"/>
  51. <xs:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded"/>
  52. <xs:element name="meta" type="metaType" minOccurs="0" maxOccurs="unbounded"/>
  53. <xs:element name="script" type="scriptType" minOccurs="0" maxOccurs="unbounded"/>
  54. <xs:element name="remove" type="srcRemoveType" minOccurs="0" maxOccurs="unbounded"/>
  55. <xs:element name="attribute" type="headAttributeType" minOccurs="0" maxOccurs="unbounded"/>
  56. </xs:sequence>
  57. </xs:complexType>
  58. </xs:schema>