File: basic.rnc

package info (click to toggle)
jing-trang 20220510-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,960 kB
  • sloc: java: 51,292; xml: 22,675; sh: 463; python: 189; makefile: 34
file content (21 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Checks exclusions applying to "a" and "pre" elements.
# This schema is intended to be used in addition to xhtml.rng.

default namespace = "http://www.w3.org/1999/xhtml"

start = normalElement
normalElement = element * - (a|pre) { normalContent }
normalContent = (normalElement | aElement | preElement | anyAttribute | text)*
aElement = element a { aContent }
aContent = (element * - (a|pre) { aContent } | anyAttribute | text)*
preElement = element pre { preContent }
preContent =
  (element * - (a|pre|img|object|applet|big|small|sub|sup|font|basefont)
    { preContent }
   | aPreElement | anyAttribute | text)*
aPreElement = element a { aPreContent }
aPreContent =
  (element * - (a|pre|img|object|applet|big|small|sub|sup|font|basefont)
    { aPreContent }
   | anyAttribute | text)*
anyAttribute = attribute * { text }