| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513 | 
							- <?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: pool.rnc 7466 2007-09-27 14:03:55Z 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:a="http://relaxng.org/ns/compatibility/annotations/1.0" 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">
 
-     <ref name="db.cmdsynopsis"/>
 
-   </start>
 
-   <define name="db.domain.inlines" combine="choice">
 
-     <ref name="db.os.inlines"/>
 
-   </define>
 
-   <define name="db.synopsis.blocks" combine="choice">
 
-     <ref name="db.cmdsynopsis"/>
 
-   </define>
 
-   <define name="db.os.inlines">
 
-     <choice>
 
-       <ref name="db.prompt"/>
 
-       <ref name="db.envar"/>
 
-       <ref name="db.filename"/>
 
-       <ref name="db.command"/>
 
-       <ref name="db.computeroutput"/>
 
-       <ref name="db.userinput"/>
 
-     </choice>
 
-   </define>
 
-   <define name="db.computeroutput.inlines">
 
-     <choice>
 
-       <text/>
 
-       <ref name="db.ubiq.inlines"/>
 
-       <ref name="db.os.inlines"/>
 
-       <ref name="db.technical.inlines"/>
 
-     </choice>
 
-   </define>
 
-   <define name="db.userinput.inlines">
 
-     <choice>
 
-       <text/>
 
-       <ref name="db.ubiq.inlines"/>
 
-       <ref name="db.os.inlines"/>
 
-       <ref name="db.technical.inlines"/>
 
-     </choice>
 
-   </define>
 
-   <!-- ====================================================================== -->
 
-   <define name="db.prompt.inlines">
 
-     <ref name="db._text"/>
 
-   </define>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>prompt</db:refname>
 
-     <db:refpurpose>A character or string indicating the start of an input field in a  computer display</db:refpurpose>
 
-     <define name="db.prompt.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.prompt.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.prompt.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.prompt">
 
-       <element name="prompt">
 
-         <ref name="db.prompt.attlist"/>
 
-         <zeroOrMore>
 
-           <ref name="db.prompt.inlines"/>
 
-         </zeroOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>envar</db:refname>
 
-     <db:refpurpose>A software environment variable</db:refpurpose>
 
-     <define name="db.envar.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.envar.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.envar.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.envar">
 
-       <element name="envar">
 
-         <ref name="db.envar.attlist"/>
 
-         <ref name="db._text"/>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>filename</db:refname>
 
-     <db:refpurpose>The name of a file</db:refpurpose>
 
-     <define name="db.filename.class.enumeration">
 
-       <choice>
 
-         <value>devicefile</value>
 
-         <a:documentation>A device</a:documentation>
 
-         <value>directory</value>
 
-         <a:documentation>A directory</a:documentation>
 
-         <value>extension</value>
 
-         <a:documentation>A filename extension</a:documentation>
 
-         <value>headerfile</value>
 
-         <a:documentation>A header file (as for a programming language)</a:documentation>
 
-         <value>libraryfile</value>
 
-         <a:documentation>A library file</a:documentation>
 
-         <value>partition</value>
 
-         <a:documentation>A partition (as of a hard disk)</a:documentation>
 
-         <value>symlink</value>
 
-         <a:documentation>A symbolic link</a:documentation>
 
-       </choice>
 
-     </define>
 
-     <define name="db.filename.class.attribute">
 
-       <attribute name="class">
 
-         <db:refpurpose>Identifies the class of filename</db:refpurpose>
 
-         <ref name="db.filename.class.enumeration"/>
 
-       </attribute>
 
-     </define>
 
-     <define name="db.filename.path.attribute">
 
-       <attribute name="path">
 
-         <db:refpurpose>Specifies the path of the filename</db:refpurpose>
 
-       </attribute>
 
-     </define>
 
-     <define name="db.filename.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.filename.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.filename.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-         <optional>
 
-           <ref name="db.filename.path.attribute"/>
 
-         </optional>
 
-         <optional>
 
-           <ref name="db.filename.class.attribute"/>
 
-         </optional>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.filename">
 
-       <element name="filename">
 
-         <ref name="db.filename.attlist"/>
 
-         <ref name="db._text"/>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>command</db:refname>
 
-     <db:refpurpose>The name of an executable program or other software command</db:refpurpose>
 
-     <define name="db.command.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.command.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.command.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.command">
 
-       <element name="command">
 
-         <ref name="db.command.attlist"/>
 
-         <ref name="db._text"/>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>computeroutput</db:refname>
 
-     <db:refpurpose>Data, generally text, displayed or presented by a computer</db:refpurpose>
 
-     <define name="db.computeroutput.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.computeroutput.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.computeroutput.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.computeroutput">
 
-       <element name="computeroutput">
 
-         <ref name="db.computeroutput.attlist"/>
 
-         <zeroOrMore>
 
-           <ref name="db.computeroutput.inlines"/>
 
-         </zeroOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>userinput</db:refname>
 
-     <db:refpurpose>Data entered by the user</db:refpurpose>
 
-     <define name="db.userinput.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.userinput.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.userinput.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.userinput">
 
-       <element name="userinput">
 
-         <ref name="db.userinput.attlist"/>
 
-         <zeroOrMore>
 
-           <ref name="db.userinput.inlines"/>
 
-         </zeroOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>cmdsynopsis</db:refname>
 
-     <db:refpurpose>A syntax summary for a software command</db:refpurpose>
 
-     <define name="db.cmdsynopsis.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.cmdsynopsis.sepchar.attribute">
 
-       <attribute name="sepchar">
 
-         <db:refpurpose>Specifies the character that should separate the command and its top-level arguments</db:refpurpose>
 
-       </attribute>
 
-     </define>
 
-     <define name="db.cmdsynopsis.cmdlength.attribute">
 
-       <attribute name="cmdlength">
 
-         <db:refpurpose>Indicates the displayed length of the command; this information may be used to intelligently indent command synopses which extend beyond one line</db:refpurpose>
 
-       </attribute>
 
-     </define>
 
-     <define name="db.cmdsynopsis.label.attribute">
 
-       <ref name="db.label.attribute"/>
 
-     </define>
 
-     <define name="db.cmdsynopsis.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.cmdsynopsis.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-         <optional>
 
-           <ref name="db.cmdsynopsis.sepchar.attribute"/>
 
-         </optional>
 
-         <optional>
 
-           <ref name="db.cmdsynopsis.cmdlength.attribute"/>
 
-         </optional>
 
-         <optional>
 
-           <ref name="db.cmdsynopsis.label.attribute"/>
 
-         </optional>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.cmdsynopsis.info">
 
-       <ref name="db._info.title.forbidden"/>
 
-     </define>
 
-     <define name="db.cmdsynopsis">
 
-       <element name="cmdsynopsis">
 
-         <ref name="db.cmdsynopsis.attlist"/>
 
-         <ref name="db.cmdsynopsis.info"/>
 
-         <oneOrMore>
 
-           <choice>
 
-             <ref name="db.command"/>
 
-             <ref name="db.arg"/>
 
-             <ref name="db.group"/>
 
-             <ref name="db.sbr"/>
 
-           </choice>
 
-         </oneOrMore>
 
-         <zeroOrMore>
 
-           <ref name="db.synopfragment"/>
 
-         </zeroOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <define name="db.rep.enumeration">
 
-     <choice>
 
-       <value>norepeat</value>
 
-       <a:documentation>Can not be repeated.</a:documentation>
 
-       <value>repeat</value>
 
-       <a:documentation>Can be repeated.</a:documentation>
 
-     </choice>
 
-   </define>
 
-   <define name="db.rep.attribute">
 
-     <attribute name="rep" a:defaultValue="norepeat">
 
-       <db:refpurpose>Indicates whether or not repetition is possible.</db:refpurpose>
 
-       <ref name="db.rep.enumeration"/>
 
-     </attribute>
 
-   </define>
 
-   <define name="db.choice.enumeration">
 
-     <choice>
 
-       <value>opt</value>
 
-       <a:documentation>Formatted to indicate that it is optional.</a:documentation>
 
-       <value>plain</value>
 
-       <a:documentation>Formatted without indication.</a:documentation>
 
-       <value>req</value>
 
-       <a:documentation>Formatted to indicate that it is required.</a:documentation>
 
-     </choice>
 
-   </define>
 
-   <define name="db.choice.opt.attribute">
 
-     <attribute name="choice" a:defaultValue="opt">
 
-       <db:refpurpose>Indicates optionality.</db:refpurpose>
 
-       <ref name="db.choice.enumeration"/>
 
-     </attribute>
 
-   </define>
 
-   <define name="db.choice.req.attribute">
 
-     <attribute name="choice" a:defaultValue="req">
 
-       <db:refpurpose>Indicates optionality.</db:refpurpose>
 
-       <ref name="db.choice.enumeration"/>
 
-     </attribute>
 
-   </define>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>arg</db:refname>
 
-     <db:refpurpose>An argument in a cmdsynopsis</db:refpurpose>
 
-     <define name="db.arg.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.arg.rep.attribute">
 
-       <ref name="db.rep.attribute"/>
 
-     </define>
 
-     <define name="db.arg.choice.attribute">
 
-       <ref name="db.choice.opt.attribute"/>
 
-     </define>
 
-     <define name="db.arg.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.arg.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-         <optional>
 
-           <ref name="db.arg.rep.attribute"/>
 
-         </optional>
 
-         <optional>
 
-           <ref name="db.arg.choice.attribute"/>
 
-         </optional>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.arg">
 
-       <element name="arg">
 
-         <ref name="db.arg.attlist"/>
 
-         <zeroOrMore>
 
-           <choice>
 
-             <ref name="db._text"/>
 
-             <ref name="db.arg"/>
 
-             <ref name="db.group"/>
 
-             <ref name="db.option"/>
 
-             <ref name="db.synopfragmentref"/>
 
-             <ref name="db.sbr"/>
 
-           </choice>
 
-         </zeroOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>group</db:refname>
 
-     <db:refpurpose>A group of elements in a cmdsynopsis</db:refpurpose>
 
-     <define name="db.group.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.group.rep.attribute">
 
-       <ref name="db.rep.attribute"/>
 
-     </define>
 
-     <define name="db.group.choice.attribute">
 
-       <ref name="db.choice.opt.attribute"/>
 
-     </define>
 
-     <define name="db.group.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.group.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-         <optional>
 
-           <ref name="db.group.rep.attribute"/>
 
-         </optional>
 
-         <optional>
 
-           <ref name="db.group.choice.attribute"/>
 
-         </optional>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.group">
 
-       <element name="group">
 
-         <ref name="db.group.attlist"/>
 
-         <oneOrMore>
 
-           <choice>
 
-             <ref name="db.arg"/>
 
-             <ref name="db.group"/>
 
-             <ref name="db.option"/>
 
-             <ref name="db.synopfragmentref"/>
 
-             <ref name="db.replaceable"/>
 
-             <ref name="db.sbr"/>
 
-           </choice>
 
-         </oneOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>sbr</db:refname>
 
-     <db:refpurpose>An explicit line break in a command synopsis</db:refpurpose>
 
-     <define name="db.sbr.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.sbr.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.sbr.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.sbr">
 
-       <element name="sbr">
 
-         <ref name="db.sbr.attlist"/>
 
-         <empty/>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>synopfragment</db:refname>
 
-     <db:refpurpose>A portion of a cmdsynopsis broken out from the main body of the synopsis</db:refpurpose>
 
-     <define name="db.synopfragment.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.synopfragment.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.synopfragment.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.common.linking.attributes"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.synopfragment">
 
-       <element name="synopfragment">
 
-         <ref name="db.synopfragment.attlist"/>
 
-         <oneOrMore>
 
-           <choice>
 
-             <ref name="db.arg"/>
 
-             <ref name="db.group"/>
 
-           </choice>
 
-         </oneOrMore>
 
-       </element>
 
-     </define>
 
-   </div>
 
-   <!-- ====================================================================== -->
 
-   <div>
 
-     <db:refname>synopfragmentref</db:refname>
 
-     <db:refpurpose>A reference to a fragment of a command synopsis</db:refpurpose>
 
-     <define name="db.synopfragmentref.role.attribute">
 
-       <attribute name="role"/>
 
-     </define>
 
-     <define name="db.synopfragmentref.attlist">
 
-       <interleave>
 
-         <optional>
 
-           <ref name="db.synopfragmentref.role.attribute"/>
 
-         </optional>
 
-         <ref name="db.common.attributes"/>
 
-         <ref name="db.linkend.attribute"/>
 
-       </interleave>
 
-     </define>
 
-     <define name="db.synopfragmentref">
 
-       <element name="synopfragmentref">
 
-         <s:pattern name="Synopsis fragment type constraint">
 
-           <s:rule context="db:synopfragmentref">
 
-             <s:assert test="local-name(//*[@xml:id=current()/@linkend]) = 'synopfragment' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'">@linkend on synopfragmentref must point to a synopfragment.</s:assert>
 
-           </s:rule>
 
-         </s:pattern>
 
-         <ref name="db.synopfragmentref.attlist"/>
 
-         <text/>
 
-       </element>
 
-     </define>
 
-   </div>
 
- </grammar>
 
 
  |