xhtml-text.rnc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Text Module
  2. br = element br { br.attlist, empty }
  3. br.attlist = Core.attrib
  4. span = element span { span.attlist, Inline.model }
  5. span.attlist = Common.attrib
  6. abbr = element abbr { abbr.attlist, Inline.model }
  7. abbr.attlist = Common.attrib
  8. acronym = element acronym { acronym.attlist, Inline.model }
  9. acronym.attlist = Common.attrib
  10. cite = element cite { cite.attlist, Inline.model }
  11. cite.attlist = Common.attrib
  12. code = element code { code.attlist, Inline.model }
  13. code.attlist = Common.attrib
  14. dfn = element dfn { dfn.attlist, Inline.model }
  15. dfn.attlist = Common.attrib
  16. em = element em { em.attlist, Inline.model }
  17. em.attlist = Common.attrib
  18. kbd = element kbd { kbd.attlist, Inline.model }
  19. kbd.attlist = Common.attrib
  20. q = element q { q.attlist, Inline.model }
  21. q.attlist =
  22. Common.attrib,
  23. attribute cite { URI.datatype }?
  24. samp = element samp { samp.attlist, Inline.model }
  25. samp.attlist = Common.attrib
  26. strong = element strong { strong.attlist, Inline.model }
  27. strong.attlist = Common.attrib
  28. var = element var { var.attlist, Inline.model }
  29. var.attlist = Common.attrib
  30. \div = element div { div.attlist, Flow.model }
  31. div.attlist = Common.attrib
  32. p = element p { p.attlist, Inline.model }
  33. p.attlist = Common.attrib
  34. address = element address { address.attlist, Inline.model }
  35. address.attlist = Common.attrib
  36. blockquote = element blockquote { blockquote.attlist, Block.model }
  37. blockquote.attlist =
  38. Common.attrib,
  39. attribute cite { URI.datatype }?
  40. pre = element pre { pre.attlist, Inline.model }
  41. pre.attlist =
  42. Common.attrib,
  43. attribute xml:space { "preserve" }?
  44. h1 = element h1 { Heading.attrib, Heading.content }
  45. h2 = element h2 { Heading.attrib, Heading.content }
  46. h3 = element h3 { Heading.attrib, Heading.content }
  47. h4 = element h4 { Heading.attrib, Heading.content }
  48. h5 = element h5 { Heading.attrib, Heading.content }
  49. h6 = element h6 { Heading.attrib, Heading.content }
  50. Heading.attrib = Common.attrib
  51. Heading.content = Inline.model
  52. Heading.class = h1 | h2 | h3 | h4 | h5 | h6
  53. Block.class = address | blockquote | \div | p | pre | Heading.class
  54. Inline.class =
  55. abbr
  56. | acronym
  57. | br
  58. | cite
  59. | code
  60. | dfn
  61. | em
  62. | kbd
  63. | q
  64. | samp
  65. | span
  66. | strong
  67. | var
  68. Inline.model = (text | Inline.class)*
  69. # This is redefined by the legacy module to include inlines.
  70. Block.mix = Block.class
  71. Block.model = Block.mix+
  72. Flow.model = (text | Inline.class | Block.class)*