Guest User

Untitled

a guest
Dec 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. DTD ----------+
  2. |
  3. config file --+ -- DOM/SAX Parser --> Python object
  4. |
  5. Scheme -------+
  6.  
  7.  
  8. DTD ----------+
  9. |
  10. Python object --> XSLT-like transformation --> named.conf
  11. |
  12. Scheme -------+
  13.  
  14. <xs:attributeGroup name="zone" minOccurs=0 maxOccurs="unbounded">
  15. <xs:choice>
  16. <xs:attribute name="allow-notify" minOccurs="0" maxOccurs="1">
  17. <xs:attribute name="allow-query" minOccurs="0" maxOccurs="1">
  18. <xs:attribute name="allow-query-on" minOccurs="0" maxOccurs="1">
  19. <xs:attribute name="allow-recursion" minOccurs="0" maxOccurs="1">
  20. <xs:attribute name="allow-recursion-on" minOccurs="0" maxOccurs="1">
  21. <xs:attribute name="allow-transfer" minOccurs="0" maxOccurs="1">
  22. <xs:attribute name="allow-update" minOccurs="0" maxOccurs="1">
  23. <xs:attribute name="allow-update-forwarding" minOccurs="0" maxOccurs="1">
  24. <xs:attribute name="forwarders" minOccurs="0" maxOccurs="1">
  25. <xs:attribute name="server-addresses" minOccurs="0" maxOccurs="1">
  26. <xs:attribute name="server-names" minOccurs="0" maxOccurs="1">
  27. <xs:attribute name="update-policy" minOccurs="0" maxOccurs="1">
  28. </xs:choice>
  29. </xs:attributeGroup name="zone">
  30.  
  31.  
  32. <xs:attributeGroup name="clause_zone_or_view">
  33. <xs:complexType name="zone_or_view">
  34. <xs:choice> # I thought no standalone zone is permitted if 1 or more views
  35. <xs:attribute name="zone" minOccurs="0" maxOccurs="unbounded">
  36. <xs:attribute name="view" minOccurs="0" maxOccurs="unbounded">
  37. </xs:choice>
  38. <xs:complexType name="zone_or_view">
  39. </xs:attributeGroup name="clause_zone_or_view">
  40.  
  41.  
  42. <!-- BIND named.conf -->
  43. <xs:complexType>
  44. <xs:choice>
  45. <xs:attribute name="clause_ACL" minOccurs="0" maxOccurs="unbounded">
  46. <xs:attribute name="clause_options" minOccurs="1" maxOccurs="1">
  47. <xs:attribute name="clause_statistics_channel" minOccurs="1" maxOccurs="1">
  48. <xs:attribute name="clause_logging" minOccurs="1" maxOccurs="1">
  49. <xs:attribute name="clause_masters" minOccurs="1" maxOccurs="unbounded">
  50. <xs:attribute name="clause_view_or_zone" minOccurs="1" maxOccurs="1">
  51. <xs:attribute name="clause_key" minOccurs="0" maxOccurs="unbounded">
  52. <xs:attribute name="clause_controls" minOccurs="1" maxOccurs="1">
  53. <xs:attribute name="clause_trusted_keys" minOccurs="0" maxOccurs="unbounded">
  54. </xs:choice>
  55. </xs:complexType>
Add Comment
Please, Sign In to add comment