db.optional.refentry |= db.refentry*
db.required.refentry |= db.refentry+
-db.refsect1 = notAllowed
-db.refsect2 = notAllowed
+db.toplevel.optional.refsection = db.refsection*
+db.toplevel.required.refsection = db.refsection+
+
+db.secondlevel.optional.refsection = db.refsection*
+db.secondlevel.required.refsection = db.refsection+
# ======================================================================
db.refmeta?,
db.refnamediv+,
db.refsynopsisdiv?,
- (db.refsection+|db.refsect1+)
+ db.toplevel.required.refsection
}
}
element refsynopsisdiv {
db.refsynopsisdiv.attlist,
db.refsynopsisdiv.info,
- ((db.all.blocks+, (db.refsection* | db.refsect2*))
- | (db.refsection+ | db.refsect2+))
+ ((db.all.blocks+, db.secondlevel.optional.refsection)
+ | db.secondlevel.required.refsection)
}
}
namespace db = "http://docbook.org/docbook-ng"
default namespace = "http://docbook.org/docbook-ng"
+db.toplevel.optional.refsection |= db.refsect1*
+db.toplevel.required.refsection |= db.refsect1+
+
+db.secondlevel.optional.refsection |= db.refsect2*
+db.secondlevel.required.refsection |= db.refsect2+
+
# ======================================================================
[
db.refsect1.info = db._info.title.req
- db.refsect1 |=
+ db.refsect1 =
element refsect1 {
db.refsect1.attlist,
db.refsect1.info,
[
db:refname [ "refsect2" ]
- db:refpurpose [ "A subsection of a RefSect1" ]
+ db:refpurpose [ "A subsection of a " db:tag [ "refsect1" ] ]
]
div {
db.refsect2.info = db._info.title.req
- db.refsect2 |=
+ db.refsect2 =
element refsect2 {
db.refsect2.attlist,
db.refsect2.info,
[
db:refname [ "refsect3" ]
- db:refpurpose [ "A subsection of a RefSect2" ]
+ db:refpurpose [ "A subsection of a " db:tag [ "refsect2" ] ]
]
div {