123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?xml version="1.0" encoding="UTF-8"?>
- <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:dbx="http://sourceforge.net/projects/docbook/defguide/schema/extra-markup" xmlns="http://relaxng.org/ns/structure/1.0">
- <start combine="choice">
- <ref name="db.topic"/>
- </start>
- <define name="db.book.components" combine="choice">
- <zeroOrMore>
- <ref name="db.topic"/>
- </zeroOrMore>
- </define>
- <define name="db.part.contentmodel" combine="choice">
- <oneOrMore>
- <ref name="db.topic"/>
- </oneOrMore>
- </define>
- <define name="db.chapter.contentmodel" combine="choice">
- <oneOrMore>
- <ref name="db.topic"/>
- </oneOrMore>
- </define>
- <define name="db.appendix.contentmodel" combine="choice">
- <oneOrMore>
- <ref name="db.topic"/>
- </oneOrMore>
- </define>
-
- <div>
- <db:refname>topic</db:refname>
- <db:refpurpose>A modular unit of documentation not part of any particular narrative flow</db:refpurpose>
- <define name="db.topic.status.attribute">
- <ref name="db.status.attribute"/>
- </define>
- <define name="db.topic.role.attribute">
- <attribute name="role"/>
- </define>
- <define name="db.topic.type.attribute">
- <attribute name="type">
- <db:refpurpose>Identifies the topic type</db:refpurpose>
- </attribute>
- </define>
- <define name="db.topic.attlist">
- <interleave>
- <optional>
- <ref name="db.topic.role.attribute"/>
- </optional>
- <optional>
- <ref name="db.topic.type.attribute"/>
- </optional>
- <ref name="db.common.attributes"/>
- <ref name="db.common.linking.attributes"/>
- <optional>
- <ref name="db.label.attribute"/>
- </optional>
- <optional>
- <ref name="db.topic.status.attribute"/>
- </optional>
- </interleave>
- </define>
- <define name="db.topic.info">
- <ref name="db._info.title.req"/>
- </define>
- <define name="db.topic">
- <element name="topic">
- <ref name="db.topic.attlist"/>
- <ref name="db.topic.info"/>
- <zeroOrMore>
- <ref name="db.navigation.components"/>
- </zeroOrMore>
- <ref name="db.toplevel.blocks.or.sections"/>
- <zeroOrMore>
- <ref name="db.navigation.components"/>
- </zeroOrMore>
- </element>
- </define>
- </div>
- </grammar>
|