PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/XML/test_data/rnc/actions.rnc

#
Unknown | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | f858d7b94e9b52f0927ffdab9ce9a532 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
  2. att-bool = "TRUE" | "FALSE"
  3. # ACTIONS element
  4. ACTIONS = element ACTIONS { ACTIONS-attlist, ACTION+ }
  5. ACTIONS-attlist &= empty
  6. # ACTION element
  7. ACTION = element ACTION { ACTION-attlist, CODE, IS_SELECTED? }
  8. ACTION-attlist &=
  9. attribute NAME { xsd:ID },
  10. [ a:defaultValue = "FALSE" ] attribute NO_REPEAT { att-bool }?,
  11. [ a:defaultValue = "FALSE" ] attribute NO_RECORD { att-bool }?,
  12. [ a:defaultValue = "FALSE" ] attribute NO_REMEMBER_LAST { att-bool }?
  13. # ACTION children
  14. CODE = element CODE { CODE-attlist, text }
  15. CODE-attlist &= empty
  16. IS_SELECTED = element IS_SELECTED { IS_SELECTED-attlist, text }
  17. IS_SELECTED-attlist &= empty
  18. start = ACTIONS