Skip to content

Commit

Permalink
Adapt content model of step
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschr committed Mar 7, 2019
1 parent 4bae90d commit 390d930
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 27 deletions.
25 changes: 10 additions & 15 deletions geekodoc/rng/geekodoc5-flat.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ div {
| db.extension.blocks
| db.admonition.blocks)*
db.step.blocks =
(db.para.blocks & db.remark?),
(db.para.blocks
| db.remark
| db.indexterm
Expand Down Expand Up @@ -10876,20 +10875,16 @@ div {
]
]
element step {
(db.step.attlist,
# db.step.info?,
db.para,
db.step.blocks*,
((db.substeps | db.stepalternatives)?, db.step.blocks*),
db.result?)
# ((# db.step.blocks?,
# ((db.substeps | db.stepalternatives), db.step.blocks*)?,
# db.result?)
# | ((db.substeps | db.stepalternatives),
# db.step.blocks*,
# db.result?)
# )

db.step.attlist,
# db.step.info?,
db.remark?,
db.para,
((db.step.blocks?,
((db.substeps | db.stepalternatives), db.step.blocks*)?,
db.result?)
| ((db.substeps | db.stepalternatives),
db.step.blocks*,
db.result?))
}
}
# task* elements
Expand Down
22 changes: 10 additions & 12 deletions geekodoc/rng/geekodoc5.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ db.entry.model =


db.step.blocks =
(db.para.blocks & db.remark?),
( db.para.blocks
| db.remark
| db.indexterm # TODO: Remove that (currently we have too much of that)
Expand Down Expand Up @@ -1510,18 +1509,17 @@ include "docbookxi.rnc"
element step {
db.step.attlist,
# db.step.info?,
db.remark?,
db.para,
db.step.blocks*,
((db.substeps | db.stepalternatives)?,
db.step.blocks*),
db.result?
#((# db.step.blocks?,
# ((db.substeps | db.stepalternatives), db.step.blocks*)?,
# db.result?)
# | ((db.substeps | db.stepalternatives),
# db.step.blocks*,
# db.result?)
#)
(
(db.step.blocks?,
((db.substeps | db.stepalternatives), db.step.blocks*)?,
db.result?)
|
((db.substeps | db.stepalternatives),
db.step.blocks*,
db.result?)
)
}
}

Expand Down

0 comments on commit 390d930

Please sign in to comment.