📄 docbook.rnc.svn-base
字号:
s:assert [
test = "not(.//db:sidebar)"
"sidebar must not occur in the descendants of footnote"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:footnote"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:task)"
"task must not occur in the descendants of footnote"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:footnote"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:epigraph)"
"epigraph must not occur in the descendants of footnote"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element footnote { db.footnote.attlist, db.all.blocks+ }
}
div {
db.formalpara.role.attribute = attribute role { text }
db.formalpara.attlist =
db.formalpara.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.formalpara.info = db._info.title.onlyreq
db.formalpara =
## A paragraph with a title
element formalpara {
db.formalpara.attlist,
db.formalpara.info,
db.indexing.inlines*,
db.para
}
}
div {
db.para.role.attribute = attribute role { text }
db.para.attlist =
db.para.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.para.info = db._info.title.forbidden
db.para =
## A paragraph
[
s:pattern [
name = "Root must have version"
"\x{a}" ~
" "
s:rule [
context = "/db:para"
"\x{a}" ~
" "
s:assert [
test = "@version"
"The root element must have a version attribute."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element para {
db.para.attlist,
db.para.info,
(db.all.inlines | db.nopara.blocks)*
}
}
div {
db.simpara.role.attribute = attribute role { text }
db.simpara.attlist =
db.simpara.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.simpara.info = db._info.title.forbidden
db.simpara =
## A paragraph that contains only text and inline markup, no block elements
element simpara {
db.simpara.attlist, db.simpara.info, db.all.inlines*
}
}
db.admonition.contentmodel = db._info.title.only, db.all.blocks+
div {
db.caution.role.attribute = attribute role { text }
db.caution.attlist =
db.caution.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.caution =
## A note of caution
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:caution"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:caution)"
"caution must not occur in the descendants of caution"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:caution"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:important)"
"important must not occur in the descendants of caution"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:caution"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:note)"
"note must not occur in the descendants of caution"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:caution"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:tip)"
"tip must not occur in the descendants of caution"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:caution"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:warning)"
"warning must not occur in the descendants of caution"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element caution { db.caution.attlist, db.admonition.contentmodel }
}
div {
db.important.role.attribute = attribute role { text }
db.important.attlist =
db.important.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.important =
## An admonition set off from the text
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:important"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:caution)"
"caution must not occur in the descendants of important"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:important"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:important)"
"important must not occur in the descendants of important"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:important"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:note)"
"note must not occur in the descendants of important"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:important"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:tip)"
"tip must not occur in the descendants of important"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:important"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:warning)"
"warning must not occur in the descendants of important"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element important {
db.important.attlist, db.admonition.contentmodel
}
}
div {
db.note.role.attribute = attribute role { text }
db.note.attlist =
db.note.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.note =
## A message set off from the text
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:note"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:caution)"
"caution must not occur in the descendants of note"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:note"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:important)"
"important must not occur in the descendants of note"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:note"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:note)"
"note must not occur in the descendants of note"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:note"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:tip)"
"tip must not occur in the descendants of note"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:note"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:warning)"
"warning must not occur in the descendants of note"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element note { db.note.attlist, db.admonition.contentmodel }
}
div {
db.tip.role.attribute = attribute role { text }
db.tip.attlist =
db.tip.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.tip =
## A suggestion to the user, set off from the text
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:tip"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:caution)"
"caution must not occur in the descendants of tip"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:tip"
"\x{a}" ~
" "
s:assert [
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -