source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/schema/relaxng/topic.rng@ c158fe6

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since c158fe6 was b1a51ac1, checked in by Krejzi <krejzi@…>, 11 years ago

Import new branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 This file is part of DocBook V5.0
4
5 Copyright 1992-2008 HaL Computer Systems, Inc.,
6 O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
7 Corporation, Norman Walsh, Sun Microsystems, Inc., and the
8 Organization for the Advancement of Structured Information
9 Standards (OASIS).
10
11 Release: $Id: hier.rnc 8569 2010-01-15 00:23:46Z nwalsh $
12
13 Permission to use, copy, modify and distribute the DocBook schema
14 and its accompanying documentation for any purpose and without fee
15 is hereby granted in perpetuity, provided that the above copyright
16 notice and this paragraph appear in all copies. The copyright
17 holders make no representation about the suitability of the schema
18 for any purpose. It is provided "as is" without expressed or implied
19 warranty.
20
21 If you modify the DocBook schema in any way, label your schema as a
22 variant of DocBook. See the reference documentation
23 (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
24 for more information.
25
26 Please direct all questions, bug reports, or suggestions for changes
27 to the docbook@lists.oasis-open.org mailing list. For more
28 information, see http://www.oasis-open.org/docbook/.
29
30 ======================================================================
31-->
32<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">
33 <start combine="choice">
34 <ref name="db.topic"/>
35 </start>
36 <define name="db.book.components" combine="choice">
37 <zeroOrMore>
38 <ref name="db.topic"/>
39 </zeroOrMore>
40 </define>
41 <define name="db.part.contentmodel" combine="choice">
42 <oneOrMore>
43 <ref name="db.topic"/>
44 </oneOrMore>
45 </define>
46 <define name="db.chapter.contentmodel" combine="choice">
47 <oneOrMore>
48 <ref name="db.topic"/>
49 </oneOrMore>
50 </define>
51 <define name="db.appendix.contentmodel" combine="choice">
52 <oneOrMore>
53 <ref name="db.topic"/>
54 </oneOrMore>
55 </define>
56 <!-- ====================================================================== -->
57 <div>
58 <db:refname>topic</db:refname>
59 <db:refpurpose>A modular unit of documentation not part of any particular narrative flow</db:refpurpose>
60 <define name="db.topic.status.attribute">
61 <ref name="db.status.attribute"/>
62 </define>
63 <define name="db.topic.role.attribute">
64 <attribute name="role"/>
65 </define>
66 <define name="db.topic.type.attribute">
67 <attribute name="type">
68 <db:refpurpose>Identifies the topic type</db:refpurpose>
69 </attribute>
70 </define>
71 <define name="db.topic.attlist">
72 <interleave>
73 <optional>
74 <ref name="db.topic.role.attribute"/>
75 </optional>
76 <optional>
77 <ref name="db.topic.type.attribute"/>
78 </optional>
79 <ref name="db.common.attributes"/>
80 <ref name="db.common.linking.attributes"/>
81 <optional>
82 <ref name="db.label.attribute"/>
83 </optional>
84 <optional>
85 <ref name="db.topic.status.attribute"/>
86 </optional>
87 </interleave>
88 </define>
89 <define name="db.topic.info">
90 <ref name="db._info.title.req"/>
91 </define>
92 <define name="db.topic">
93 <element name="topic">
94 <ref name="db.topic.attlist"/>
95 <ref name="db.topic.info"/>
96 <zeroOrMore>
97 <ref name="db.navigation.components"/>
98 </zeroOrMore>
99 <ref name="db.toplevel.blocks.or.sections"/>
100 <zeroOrMore>
101 <ref name="db.navigation.components"/>
102 </zeroOrMore>
103 </element>
104 </define>
105 </div>
106</grammar>
Note: See TracBrowser for help on using the repository browser.