project.rnc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. default namespace = "https://www.dita-ot.org/project"
  2. project =
  3. ## Publication project
  4. element project { (includes | deliverable | publication | context)* }
  5. includes =
  6. ## Include project file
  7. element include {
  8. attribute href { xsd:anyURI }
  9. }
  10. deliverable =
  11. ## Project deliverable
  12. element deliverable {
  13. attribute name { text }?,
  14. attribute id { xsd:NCName }?,
  15. ((context | context-ref), output, (publication | publication-ref))
  16. }
  17. context =
  18. ## Context
  19. element context {
  20. attribute name { text }?,
  21. attribute id { xsd:NCName }?,
  22. input,
  23. profile?
  24. }
  25. context-ref =
  26. ## Publication reference
  27. element context {
  28. attribute idref { xsd:NCName }
  29. }
  30. input =
  31. ## Input resource
  32. element input {
  33. attribute href { xsd:anyURI }
  34. }
  35. ## Output directory
  36. output =
  37. element output {
  38. attribute href { xsd:anyURI }
  39. }
  40. profile =
  41. ## Filter and highligh profile
  42. element profile { ditaval+ }
  43. ditaval =
  44. ## DITAVAL profile resource
  45. element ditaval {
  46. attribute href { xsd:anyURI }?,
  47. text
  48. }
  49. publication =
  50. ## Publication
  51. element publication {
  52. attribute name { text }?,
  53. attribute id { xsd:NCName }?,
  54. attribute transtype { text },
  55. param*
  56. }
  57. publication-ref =
  58. ## Publication reference
  59. element publication {
  60. attribute idref { xsd:NCName }
  61. }
  62. param =
  63. ## Publication parameter
  64. element param {
  65. attribute name { text },
  66. (attribute href { xsd:anyURI }
  67. | attribute path { xsd:anyURI }
  68. | attribute value { text })
  69. }
  70. start = project