lfs-ru/stylesheets/lfs-xsl/docbook-xsl-1.79.1/slides/schema/relaxng/refsect1.rng

193 lines
6.2 KiB
Plaintext
Raw Normal View History

2023-05-24 22:08:02 +03:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of DocBook V5.0
Copyright 1992-2008 HaL Computer Systems, Inc.,
O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
Corporation, Norman Walsh, Sun Microsystems, Inc., and the
Organization for the Advancement of Structured Information
Standards (OASIS).
Release: $Id: refsect1.rnc 8931 2010-10-20 13:29:20Z nwalsh $
Permission to use, copy, modify and distribute the DocBook schema
and its accompanying documentation for any purpose and without fee
is hereby granted in perpetuity, provided that the above copyright
notice and this paragraph appear in all copies. The copyright
holders make no representation about the suitability of the schema
for any purpose. It is provided "as is" without expressed or implied
warranty.
If you modify the DocBook schema in any way, label your schema as a
variant of DocBook. See the reference documentation
(http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
for more information.
Please direct all questions, bug reports, or suggestions for changes
to the docbook@lists.oasis-open.org mailing list. For more
information, see http://www.oasis-open.org/docbook/.
======================================================================
-->
<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:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0">
<start combine="choice">
<choice>
<ref name="db.refsect1"/>
<ref name="db.refsect2"/>
<ref name="db.refsect3"/>
</choice>
</start>
<define name="db.toplevel.refsection" combine="choice">
<oneOrMore>
<ref name="db.refsect1"/>
</oneOrMore>
</define>
<define name="db.secondlevel.refsection" combine="choice">
<oneOrMore>
<ref name="db.refsect2"/>
</oneOrMore>
</define>
<!-- ====================================================================== -->
<define name="db.refsect1.sections">
<oneOrMore>
<ref name="db.refsect2"/>
</oneOrMore>
</define>
<div>
<db:refname>refsect1</db:refname>
<db:refpurpose>A major subsection of a reference entry</db:refpurpose>
<define name="db.refsect1.status.attribute">
<ref name="db.status.attribute"/>
</define>
<define name="db.refsect1.role.attribute">
<attribute name="role"/>
</define>
<define name="db.refsect1.attlist">
<interleave>
<optional>
<ref name="db.refsect1.role.attribute"/>
</optional>
<ref name="db.common.attributes"/>
<ref name="db.common.linking.attributes"/>
<optional>
<ref name="db.label.attribute"/>
</optional>
<optional>
<ref name="db.refsect1.status.attribute"/>
</optional>
</interleave>
</define>
<define name="db.refsect1.info">
<ref name="db._info.title.req"/>
</define>
<define name="db.refsect1">
<element name="refsect1">
<ref name="db.refsect1.attlist"/>
<ref name="db.refsect1.info"/>
<choice>
<group>
<oneOrMore>
<ref name="db.all.blocks"/>
</oneOrMore>
<optional>
<ref name="db.refsect1.sections"/>
</optional>
</group>
<ref name="db.refsect1.sections"/>
</choice>
</element>
</define>
</div>
<!-- ====================================================================== -->
<define name="db.refsect2.sections">
<oneOrMore>
<ref name="db.refsect3"/>
</oneOrMore>
</define>
<div>
<db:refname>refsect2</db:refname>
<db:refpurpose>A subsection of a <db:tag>refsect1</db:tag>
</db:refpurpose>
<define name="db.refsect2.status.attribute">
<ref name="db.status.attribute"/>
</define>
<define name="db.refsect2.role.attribute">
<attribute name="role"/>
</define>
<define name="db.refsect2.attlist">
<interleave>
<optional>
<ref name="db.refsect2.role.attribute"/>
</optional>
<ref name="db.common.attributes"/>
<ref name="db.common.linking.attributes"/>
<optional>
<ref name="db.label.attribute"/>
</optional>
<optional>
<ref name="db.refsect2.status.attribute"/>
</optional>
</interleave>
</define>
<define name="db.refsect2.info">
<ref name="db._info.title.req"/>
</define>
<define name="db.refsect2">
<element name="refsect2">
<ref name="db.refsect2.attlist"/>
<ref name="db.refsect2.info"/>
<choice>
<group>
<oneOrMore>
<ref name="db.all.blocks"/>
</oneOrMore>
<optional>
<ref name="db.refsect2.sections"/>
</optional>
</group>
<ref name="db.refsect2.sections"/>
</choice>
</element>
</define>
</div>
<!-- ====================================================================== -->
<div>
<db:refname>refsect3</db:refname>
<db:refpurpose>A subsection of a <db:tag>refsect2</db:tag>
</db:refpurpose>
<define name="db.refsect3.status.attribute">
<ref name="db.status.attribute"/>
</define>
<define name="db.refsect3.role.attribute">
<attribute name="role"/>
</define>
<define name="db.refsect3.attlist">
<interleave>
<optional>
<ref name="db.refsect3.role.attribute"/>
</optional>
<ref name="db.common.attributes"/>
<ref name="db.common.linking.attributes"/>
<optional>
<ref name="db.label.attribute"/>
</optional>
<optional>
<ref name="db.refsect3.status.attribute"/>
</optional>
</interleave>
</define>
<define name="db.refsect3.info">
<ref name="db._info.title.req"/>
</define>
<define name="db.refsect3">
<element name="refsect3">
<ref name="db.refsect3.attlist"/>
<ref name="db.refsect3.info"/>
<oneOrMore>
<ref name="db.all.blocks"/>
</oneOrMore>
</element>
</define>
</div>
</grammar>