]> granicus.if.org Git - docbook-dsssl/commitdiff
Test case for grouping parameters and arguments
authorNorman Walsh <ndw@nwalsh.com>
Thu, 22 Jan 2009 13:57:01 +0000 (13:57 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 22 Jan 2009 13:57:01 +0000 (13:57 +0000)
docbook/relaxng/docbook/tests/local/groups.xml [new file with mode: 0644]

diff --git a/docbook/relaxng/docbook/tests/local/groups.xml b/docbook/relaxng/docbook/tests/local/groups.xml
new file mode 100644 (file)
index 0000000..30bf14f
--- /dev/null
@@ -0,0 +1,47 @@
+<article xmlns="http://docbook.org/ns/docbook">
+<title>Method Parameter Grouping Test</title>
+
+<methodsynopsis>
+<type>int</type>
+<methodname>x</methodname>
+<methodparam>
+<type>int</type>
+<parameter>param1</parameter>
+</methodparam>
+<group choice="opt">
+<methodparam>
+<type>string</type>
+<parameter>param2</parameter>
+</methodparam>
+<methodparam>
+<type>float</type>
+<parameter>param3</parameter>
+</methodparam>
+<group choice="opt">
+<methodparam>
+<type>array</type>
+<parameter>param4</parameter>
+</methodparam>
+<methodparam>
+<type>array</type>
+<parameter>param5</parameter>
+</methodparam>
+<group choice="opt">
+<methodparam>
+<type>boolean</type>
+<parameter>param6</parameter>
+</methodparam>
+</group>
+</group>
+</group>
+</methodsynopsis>
+
+<cmdsynopsis>
+<command>test</command>
+<group>
+  <arg>arg1</arg>
+  <arg>arg2</arg>
+</group>
+</cmdsynopsis>
+
+</article>