]> granicus.if.org Git - docbook-dsssl/commitdiff
testing grouped args, including optional & repeating args
authorAdam Di Carlo <adicarlo@users.sourceforge.net>
Wed, 22 Jan 2003 18:10:35 +0000 (18:10 +0000)
committerAdam Di Carlo <adicarlo@users.sourceforge.net>
Wed, 22 Jan 2003 18:10:35 +0000 (18:10 +0000)
testdocs/tests/cmdsynopsis.003.xml [new file with mode: 0644]

diff --git a/testdocs/tests/cmdsynopsis.003.xml b/testdocs/tests/cmdsynopsis.003.xml
new file mode 100644 (file)
index 0000000..51bdfc7
--- /dev/null
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<article id="cmdsynopsis.003">
+<articleinfo>
+<title>Unit Test: cmdsynopsis.003</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Adam</firstname><surname>Di Carlo</surname>
+        <affiliation><address><email>adam@onshored.com</email></address></affiliation>
+</author>
+</articleinfo>
+  <para>
+    Lets refer to <xref linkend="foo"/>.
+  </para>
+  <refentry id="foo">
+    <refnamediv>
+      <refname>testing</refname>
+      <refpurpose>
+        Testing more cmdsynopsis stuff, esp. permutations of grouped
+        arguments.
+      </refpurpose>
+    </refnamediv>
+
+    <refsynopsisdiv>
+      <cmdsynopsis>
+        <command>foo</command>
+
+        <!-- optional -->
+        <group choice="opt">
+          <arg>-foo</arg>
+          <arg>-bar</arg>
+        </group>
+
+        <!-- repeating optional -->
+        <group choice="opt" rep="repeat">
+          <arg>-re</arg>
+          <arg>-peat</arg>
+        </group>
+      </cmdsynopsis>
+    </refsynopsisdiv>
+
+    <refsect1>
+      <title>Description</title>
+      <para>This is a dummy description.</para>
+    </refsect1>
+  </refentry>
+  
+</article>