strings.rnc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # This file is part of the DITA Open Toolkit project.
  2. #
  3. # Copyright 2017 Jarno Elovirta
  4. #
  5. # See the accompanying LICENSE file for applicable license.
  6. namespace pdf2 = "http://www.idiominc.com/opentopic/vars"
  7. # New
  8. variables =
  9. element variables {
  10. variable*
  11. }
  12. variable =
  13. element variable {
  14. attribute id { text }?,
  15. (text | param | variableref)*
  16. }
  17. param =
  18. element param {
  19. attribute ref-name { text }
  20. }
  21. variableref =
  22. element variableref {
  23. attribute refid { text }
  24. }
  25. # Common
  26. strings =
  27. element strings {
  28. attribute xml:lang { xsd:language },
  29. str*
  30. }
  31. str =
  32. element str {
  33. attribute name { text },
  34. text
  35. }
  36. # PDF2
  37. vars =
  38. element vars {
  39. pdf2variable*
  40. }
  41. pdf2variable =
  42. element pdf2:variable {
  43. attribute id { text },
  44. (text | pdf2param)*
  45. }
  46. pdf2param =
  47. element pdf2:param {
  48. attribute ref-name { text },
  49. text
  50. }
  51. # list
  52. langlist =
  53. element langlist {
  54. lang*
  55. }
  56. lang =
  57. element lang {
  58. attribute filename { xsd:anyURI },
  59. attribute xml:lang { xsd:language }
  60. }
  61. start = variables | strings | pdf2variable | langlist