twig-1.0.xsd 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="form-theme" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
  10. <xsd:element name="global" type="global" minOccurs="0" maxOccurs="unbounded" />
  11. <xsd:element name="path" type="path" minOccurs="0" maxOccurs="unbounded" />
  12. </xsd:sequence>
  13. <xsd:attribute name="auto-reload" type="xsd:string" />
  14. <xsd:attribute name="autoescape" type="xsd:string" />
  15. <xsd:attribute name="autoescape-service" type="xsd:string" />
  16. <xsd:attribute name="autoescape-service-method" type="xsd:string" />
  17. <xsd:attribute name="base-template-class" type="xsd:string" />
  18. <xsd:attribute name="cache" type="xsd:string" />
  19. <xsd:attribute name="charset" type="xsd:string" />
  20. <xsd:attribute name="debug" type="xsd:string" />
  21. <xsd:attribute name="strict-variables" type="xsd:string" />
  22. <xsd:attribute name="exception-controller" type="xsd:string" />
  23. </xsd:complexType>
  24. <xsd:complexType name="path" mixed="true">
  25. <xsd:attribute name="namespace" type="xsd:string" />
  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:simpleType name="global_type">
  33. <xsd:restriction base="xsd:string">
  34. <xsd:enumeration value="service" />
  35. </xsd:restriction>
  36. </xsd:simpleType>
  37. </xsd:schema>