📄 docbook.rnc.svn-base
字号:
test = "not(.//db:important)"
"important 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 [
test = "not(.//db:note)"
"note 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 [
test = "not(.//db:tip)"
"tip 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 [
test = "not(.//db:warning)"
"warning must not occur in the descendants of tip"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element tip { db.tip.attlist, db.admonition.contentmodel }
}
div {
db.warning.role.attribute = attribute role { text }
db.warning.attlist =
db.warning.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.warning =
## An admonition set off from the text
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:warning"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:caution)"
"caution must not occur in the descendants of warning"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:warning"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:important)"
"important must not occur in the descendants of warning"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:warning"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:note)"
"note must not occur in the descendants of warning"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:warning"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:tip)"
"tip must not occur in the descendants of warning"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:warning"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:warning)"
"warning must not occur in the descendants of warning"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element warning { db.warning.attlist, db.admonition.contentmodel }
}
div {
db.itemizedlist.role.attribute = attribute role { text }
db.itemizedlist.mark.attribute =
## Identifies the type of mark to be used on items in this list
attribute mark { xsd:NMTOKEN }
db.itemizedlist.attlist =
db.itemizedlist.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.spacing.attribute?
& db.itemizedlist.mark.attribute?
db.itemizedlist.info = db._info.title.only
db.itemizedlist =
## A list in which each entry is marked with a bullet or other dingbat
element itemizedlist {
db.itemizedlist.attlist,
db.itemizedlist.info,
db.all.blocks*,
db.listitem+
}
}
div {
db.orderedlist.role.attribute = attribute role { text }
db.orderedlist.continuation.enumeration =
## Specifies that numbering should begin where the preceding list left off
"continues"
|
## Specifies that numbering should begin again at 1
"restarts"
db.orderedlist.continuation.attribute =
## Indicates how list numbering should begin relative to the immediately preceding list
attribute continuation { db.orderedlist.continuation.enumeration }
db.orderedlist.startingnumber.attribute =
## Specifies the initial line number.
attribute startingnumber { xsd:integer }
db.orderedlist.inheritnum.enumeration =
## Specifies that numbering should ignore list nesting
"ignore"
|
## Specifies that numbering should inherit from outer-level lists
"inherit"
db.orderedlist.inheritnum.attribute =
## Indicates whether or not item numbering should be influenced by list nesting
attribute inheritnum { db.orderedlist.inheritnum.enumeration }
db.orderedlist.numeration.enumeration =
## Specifies Arabic numeration (1, 2, 3, …)
"arabic"
|
## Specifies upper-case alphabetic numeration (A, B, C, …)
"upperalpha"
|
## Specifies lower-case alphabetic numeration (a, b, c, …)
"loweralpha"
|
## Specifies upper-case Roman numeration (I, II, III, …)
"upperroman"
|
## Specifies lower-case Roman numeration (i, ii, iii …)
"lowerroman"
db.orderedlist.numeration.attribute =
## Indicates the desired numeration
attribute numeration { db.orderedlist.numeration.enumeration }
db.orderedlist.attlist =
db.orderedlist.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.spacing.attribute?
& (db.orderedlist.continuation.attribute
| db.orderedlist.startingnumber.attribute)?
& db.orderedlist.inheritnum.attribute?
& db.orderedlist.numeration.attribute?
db.orderedlist.info = db._info.title.only
db.orderedlist =
## A list in which each entry is marked with a sequentially incremented label
element orderedlist {
db.orderedlist.attlist,
db.orderedlist.info,
db.all.blocks*,
db.listitem+
}
}
div {
db.listitem.role.attribute = attribute role { text }
db.listitem.override.attribute =
## Specifies the keyword for the type of mark that should be used on this
## item, instead of the mark that would be used by default
attribute override { xsd:NMTOKEN }
db.listitem.attlist =
db.listitem.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.listitem.override.attribute?
db.listitem =
## A wrapper for the elements of a list item
element listitem { db.listitem.attlist, db.all.blocks+ }
}
div {
db.segmentedlist.role.attribute = attribute role { text }
db.segmentedlist.attlist =
db.segmentedlist.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.segmentedlist.info = db._info.title.only
db.segmentedlist =
## A segmented list, a list of sets of elements
element segmentedlist {
db.segmentedlist.attlist,
db.segmentedlist.info,
db.segtitle+,
db.seglistitem+
}
}
div {
db.segtitle.role.attribute = attribute role { text }
db.segtitle.attlist =
db.segtitle.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.segtitle =
## The title of an element of a list item in a segmented list
element segtitle { db.segtitle.attlist, db.all.inlines* }
}
div {
db.seglistitem.role.attribute = attribute role { text }
db.seglistitem.attlist =
db.seglistitem.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.seglistitem =
## A list item in a segmented list
[
s:pattern [
name = "Cardinality of segments and titles"
"\x{a}" ~
" "
s:rule [
context = "db:seglistitem"
"\x{a}" ~
" "
s:assert [
test = "count(db:seg) = count(../db:segtitle)"
"The number of seg elements must be the same as the number of segtitle elements in the parent segmentedlist"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element seglistitem { db.seglistitem.attlist, db.seg+ }
}
div {
db.seg.role.attribute = attribute role { text }
db.seg.attlist =
db.seg.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.seg =
## An element of a list item in a segmented list
element seg { db.seg.attlist, db.all.inlines* }
}
div {
db.simplelist.role.attribute = attribute role { text }
db.simplelist.type.enumeration =
## A tabular presentation in row-major order.
"horiz"
|
## A tabular presentation in column-major order.
"vert"
|
## An inline presentation, usually a comma-delimited list.
"inline"
db.simplelist.type.attribute =
## Specifies the type of list presentation.
[ a:defaultValue = "vert" ]
attribute type { db.simplelist.type.enumeration }
db.simplelist.columns.attribute =
## Specifies the number of columns for horizontal or vertical presentation
attribute columns { xsd:integer }
db.simplelist.attlist =
db.simplelist.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.simplelist.type.attribute?
& db.simplelist.columns.attribute?
db.simplelist =
## An undecorated list of single words or short phrases
element simplelist { db.simplelist.attlist, db.member+ }
}
div {
db.member.role.attribute = attribute role { text }
db.member.attlist =
db.member.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.member =
## An element of a simple list
element member { db.member.attlist, db.all.inlines* }
}
div {
db.variablelist.role.attribute = attribute role { text }
db.variablelist.termlength.attribute =
## Indicates a length beyond which the presentation system may consider a term too long and select an alternate presentation for that term, item, or list
attribute termlength { text }
db.variablelist.attlist =
db.variablelist.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.spacing.attribute?
& db.variablelist.termlength.attribute?
db.variablelist.info = db._info.title.only
db.variablelist =
## A list in which each entry is composed of a set of one or more terms and an associated description
element variablelist {
db.variablelist.attlist,
db.variablelist.info,
db.all.blocks*,
db.varlistentry+
}
}
div {
db.varlistentry.role.attribute = attribute role { text }
db.varlistentry.attlist =
db.varlistentry.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.varlistentry =
## A wrapper for a set of terms and the associated description in a variable list
element varlistentry {
db.varlistentry.attlist, db.term+, db.listitem
}
}
div {
db.term.role.attribute = attribute role { text }
db.term.attlist =
db.term.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.term =
## The word or phrase being defined or described in a variable list
element term { db.term.attlist, db.all.inlines* }
}
div {
db.example.role.attribute = attribute role { text }
db.example.label.attribute = db.label.attribute
db.example.width.attribute = db.width.characters.attribute
db.example.floatstyle.attribute = db.floatstyle.attribute
db.example.attlist =
db.example.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.example.label.attribute?
& db.example.floatstyle.attribute?
& db.example.width.attribute?
db.example.info = db._info.title.onlyreq
db.example =
## A formal example, with a title
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:example"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:exampl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -