twig-1.0.xsd 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsd:schema xmlns="http://www.symfony-project.org/schema/dic/twig"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://www.symfony-project.org/schema/dic/twig"
  5. elementFormDefault="qualified">
  6. <xsd:element name="config" type="config" />
  7. <xsd:complexType name="config">
  8. <xsd:sequence>
  9. <xsd:element name="form" type="form" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="global" type="global" minOccurs="0" maxOccurs="unbounded" />
  11. <xsd:element name="extension" type="extension" minOccurs="0" maxOccurs="unbounded" />
  12. </xsd:sequence>
  13. <xsd:attribute name="auto-reload" type="xsd:boolean" />
  14. <xsd:attribute name="autoescape" type="xsd:boolean" />
  15. <xsd:attribute name="base-template-class" type="xsd:string" />
  16. <xsd:attribute name="cache" type="xsd:string" />
  17. <xsd:attribute name="cache-warmer" type="cache_warmer" />
  18. <xsd:attribute name="charset" type="xsd:string" />
  19. <xsd:attribute name="debug" type="xsd:boolean" />
  20. <xsd:attribute name="strict-variables" type="xsd:boolean" />
  21. </xsd:complexType>
  22. <xsd:complexType name="form">
  23. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  24. <xsd:element name="resource" type="xsd:string" />
  25. </xsd:choice>
  26. </xsd:complexType>
  27. <xsd:complexType name="global" mixed="true">
  28. <xsd:attribute name="key" type="xsd:string" use="required" />
  29. <xsd:attribute name="type" type="global_type" />
  30. <xsd:attribute name="id" type="xsd:string" />
  31. </xsd:complexType>
  32. <xsd:complexType name="extension">
  33. <xsd:attribute name="id" type="xsd:string" />
  34. </xsd:complexType>
  35. <xsd:simpleType name="cache_warmer">
  36. <xsd:restriction base="xsd:string">
  37. <xsd:enumeration value="false" />
  38. <xsd:enumeration value="true" />
  39. <xsd:enumeration value="full" />
  40. </xsd:restriction>
  41. </xsd:simpleType>
  42. <xsd:simpleType name="global_type">
  43. <xsd:restriction base="xsd:string">
  44. <xsd:enumeration value="service" />
  45. </xsd:restriction>
  46. </xsd:simpleType>
  47. </xsd:schema>