twig-1.0.xsd 1.7KB

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" type="form" minOccurs="0" maxOccurs="1" />
  10. <xsd:element name="global" type="global" minOccurs="0" maxOccurs="unbounded" />
  11. </xsd:sequence>
  12. <xsd:attribute name="auto-reload" type="xsd:string" />
  13. <xsd:attribute name="autoescape" type="xsd:string" />
  14. <xsd:attribute name="base-template-class" type="xsd:string" />
  15. <xsd:attribute name="cache" type="xsd:string" />
  16. <xsd:attribute name="charset" type="xsd:string" />
  17. <xsd:attribute name="debug" type="xsd:string" />
  18. <xsd:attribute name="strict-variables" type="xsd:string" />
  19. <xsd:attribute name="exception-controller" type="xsd:string" />
  20. </xsd:complexType>
  21. <xsd:complexType name="form">
  22. <xsd:choice minOccurs="1" maxOccurs="unbounded">
  23. <xsd:element name="resource" type="xsd:string" />
  24. </xsd:choice>
  25. </xsd:complexType>
  26. <xsd:complexType name="global" mixed="true">
  27. <xsd:attribute name="key" type="xsd:string" use="required" />
  28. <xsd:attribute name="type" type="global_type" />
  29. <xsd:attribute name="id" type="xsd:string" />
  30. </xsd:complexType>
  31. <xsd:simpleType name="global_type">
  32. <xsd:restriction base="xsd:string">
  33. <xsd:enumeration value="service" />
  34. </xsd:restriction>
  35. </xsd:simpleType>
  36. </xsd:schema>