]> granicus.if.org Git - docbook-dsssl/commitdiff
RFE #609061: StepAlternatives
authorNorman Walsh <ndw@nwalsh.com>
Mon, 30 Dec 2002 19:39:45 +0000 (19:39 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 30 Dec 2002 19:39:45 +0000 (19:39 +0000)
schema/relaxng/dbpool.rng

index 3dc9b4c87e09fa4711a5090ed2a48816e4e8f64c..50822ad7d5efa148fee75feddbbee00e3fafbeeb 100644 (file)
@@ -13,7 +13,7 @@
    role="cvs">$Id$</releaseinfo>
 <title>DocBook Information Pool</title>
 <productname>DocBook</productname>
-<productnumber>4.2</productnumber>
+<productnumber>4.2+</productnumber>
 <releaseinfo role="filename">dbpool</releaseinfo>
 <copyright>
 <year>1992</year>
@@ -2624,14 +2624,20 @@ d. Just Acronym, Emphasis, and Trademark; no other word elements.
                   <ref name="component.mix"/>
                 </oneOrMore>
                 <optional>
-                  <ref name="substeps"/>
+                  <choice>
+                    <ref name="substeps"/>
+                    <ref name="stepalternatives"/>
+                  </choice>
                   <zeroOrMore>
                     <ref name="component.mix"/>
                   </zeroOrMore>
                 </optional>
               </group>
               <group>
-                <ref name="substeps"/>
+                <choice>
+                  <ref name="substeps"/>
+                  <ref name="stepalternatives"/>
+                </choice>
                 <zeroOrMore>
                   <ref name="component.mix"/>
                 </zeroOrMore>
@@ -2699,6 +2705,45 @@ d. Just Acronym, Emphasis, and Trademark; no other word elements.
         </define>
       </div>
     </div>
+
+    <div db:name="stepalternatives.module">
+      <define name="local.stepalternatives.attrib">
+        <empty/>
+      </define>
+      <define name="stepalternatives.role.attrib">
+        <ref name="role.attrib"/>
+      </define>
+
+      <div db:name="stepalternatives">
+        <define name="stepalternatives">
+          <element name="stepalternatives">
+            <ref name="stepalternatives.attlist"/>
+            <oneOrMore>
+              <ref name="step"/>
+            </oneOrMore>
+          </element>
+        </define>
+      </div>
+
+<!-- Performance: whether entire set of stepalternatives must be performed -->
+<!-- not #REQUIRED! -->
+
+      <div db:name="stepalternatives.attlist">
+        <define name="stepalternatives.attlist" combine="interleave">
+          <optional>
+            <attribute name="performance" a:defaultValue="required">
+              <choice>
+                <value>optional</value>
+                <value>required</value>
+              </choice>
+            </attribute>
+          </optional>
+          <ref name="common.attrib"/>
+          <ref name="stepalternatives.role.attrib"/>
+          <ref name="local.stepalternatives.attrib"/>
+        </define>
+      </div>
+    </div>
   </div>
 
 <!-- Sidebar .......................... -->