relaxng.legacy.rnc Maven / Gradle / Ivy
The newest version!
datatypes w = "http://whattf.org/datatype-draft"
# #####################################################################
## RELAX NG Schema for HTML 5: Obsolete Elements and Attributes #
# #####################################################################
## In order to work around RELAX NG limitations and to thereby get more
## useful error messages, the following elements and attributes are
## allowed here but disallowed in the assertions-checking code.
## Obsolete elements
## Centering:
center.elem =
element center { center.inner & center.attrs }
center.attrs =
( common.attrs )
center.inner =
( common.inner.flow )
common.elem.flow |= center.elem
## Inline Styling:
font.elem =
element font { font.inner & font.attrs }
font.attrs =
( common.attrs
& font.attrs.color?
& font.attrs.face?
& font.attrs.size?
& common.attrs.aria?
)
font.attrs.color =
attribute color {
string
}
font.attrs.face =
attribute face {
string
}
font.attrs.size =
attribute size {
string
}
font.inner =
( common.inner.phrasing )
common.elem.phrasing |= font.elem
## Base Font Size:
basefont.elem =
element basefont { empty & basefont.attrs }
basefont.attrs =
( common.attrs
& basefont.attrs.color?
& basefont.attrs.face?
& basefont.attrs.size?
)
basefont.attrs.color =
attribute color {
string
}
basefont.attrs.face =
attribute face {
string
}
basefont.attrs.size =
attribute size {
string
}
common.elem.flow |= basefont.elem
## Larger Font:
big.elem =
element big { big.inner & big.attrs }
big.attrs =
( common.attrs )
big.inner =
( common.inner.flow )
common.elem.phrasing |= big.elem
## Struck Text:
strike.elem =
element strike { strike.inner & strike.attrs }
strike.attrs =
( common.attrs )
strike.inner =
( common.inner.flow )
common.elem.phrasing |= strike.elem
## Teletype:
tt.elem =
element tt { tt.inner & tt.attrs }
tt.attrs =
( common.attrs )
tt.inner =
( common.inner.flow )
common.elem.phrasing |= tt.elem
## Abbreviation:
acronym.elem =
element acronym { acronym.inner & acronym.attrs }
acronym.attrs =
( common.attrs )
acronym.inner =
( common.inner.flow )
common.elem.phrasing |= acronym.elem
## Directory:
dir.elem =
element dir { dir.inner & dir.attrs }
dir.attrs =
( common.attrs
& dir.attrs.compact?
)
dir.attrs.compact =
attribute compact {
string
}
dir.inner =
( li.elem* )
common.elem.flow |= dir.elem
## Java Applets: