File: basic.rnc

package info (click to toggle)
jing-trang 20091111-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,312 kB
  • ctags: 10,531
  • sloc: java: 50,336; xml: 24,925; sh: 451; makefile: 50
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 }