twig-1.0.xsd 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsd:schema xmlns="http://symfony.com/schema/dic/twig"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://symfony.com/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="date" type="date" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="number-format" type="number_format" minOccurs="0" maxOccurs="1" />
  11. <xsd:element name="form-theme" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  12. <xsd:element name="global" type="global" minOccurs="0" maxOccurs="unbounded" />
  13. <xsd:element name="path" type="path" minOccurs="0" maxOccurs="unbounded" />
  14. </xsd:sequence>
  15. <xsd:attribute name="auto-reload" type="xsd:string" />
  16. <xsd:attribute name="autoescape" type="xsd:string" />
  17. <xsd:attribute name="autoescape-service" type="xsd:string" />
  18. <xsd:attribute name="autoescape-service-method" type="xsd:string" />
  19. <xsd:attribute name="base-template-class" type="xsd:string" />
  20. <xsd:attribute name="cache" type="xsd:string" />
  21. <xsd:attribute name="charset" type="xsd:string" />
  22. <xsd:attribute name="debug" type="xsd:string" />
  23. <xsd:attribute name="strict-variables" type="xsd:string" />
  24. <xsd:attribute name="default-path" type="xsd:string" />
  25. </xsd:complexType>
  26. <xsd:complexType name="date">
  27. <xsd:attribute name="format" type="xsd:string" />
  28. <xsd:attribute name="interval-format" type="xsd:string" />
  29. <xsd:attribute name="timezone" type="xsd:string" />
  30. </xsd:complexType>
  31. <xsd:complexType name="number_format">
  32. <xsd:attribute name="decimals" type="xsd:integer" />
  33. <xsd:attribute name="decimal-point" type="xsd:string" />
  34. <xsd:attribute name="thousands-separator" type="xsd:string" />
  35. </xsd:complexType>
  36. <xsd:complexType name="path" mixed="true">
  37. <xsd:attribute name="namespace" type="xsd:string" />
  38. </xsd:complexType>
  39. <xsd:complexType name="global" mixed="true">
  40. <xsd:attribute name="key" type="xsd:string" use="required" />
  41. <xsd:attribute name="type" type="global_type" />
  42. <xsd:attribute name="id" type="xsd:string" />
  43. </xsd:complexType>
  44. <xsd:simpleType name="global_type">
  45. <xsd:restriction base="xsd:string">
  46. <xsd:enumeration value="service" />
  47. </xsd:restriction>
  48. </xsd:simpleType>
  49. </xsd:schema>