summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2007-07-24 18:49:19 +0000
committerShaun McCance <shaunm@src.gnome.org>2007-07-24 18:49:19 +0000
commit682c1518c1253bc78ecfadba2b92054c96287f3a (patch)
treee71b65122f29c38a29aae462ad7ea1b8a1076945 /test
parent2a223a2a69d224ccc87ce1312a20d1be6213b5ba (diff)
downloadyelp-xsl-682c1518c1253bc78ecfadba2b92054c96287f3a.tar.gz
- Added cmdsynopsis and glossary tests
* test/testbook/testbook.xml: - Added cmdsynopsis and glossary tests * xslt/docbook/html/db2html-division.xsl: - Fixed node comparisons by using set:has-same-node - Put entry-type division children are in a "block" div for CSS * xslt/docbook/html/db2html-qanda.xsl: * xslt/docbook/html/db2html-table.xsl: - Added FIXME notes * xslt/docbook/html/db2html-css.xsl: - Much CSS simplification * xslt/docbook/html/db2html-block.xsl: * xslt/docbook/html/db2html-refentry.xsl: - Fixed node comparisons by using set:has-same-node * xslt/gettext/l10n.xml.in: * xslt/docbook/common/db-label.xsl: * xslt/docbook/common/db-xref.xsl: * xslt/docbook/html/db2html-cmdsynopsis.xsl: * xslt/docbook/html/db2html-ebnf.xsl: * xslt/docbook/html/db2html-suppressed.xsl: * xslt/docbook/html/db2html-funcsynopsis.xsl: - Changed sbr handling, suppress by default - Implemented synopfragments correctly - Put in automatic alignment padding for sbr elements - Consolidated CSS for *synopsis elements * xslt/docbook/html/db2html-bibliography.xsl: - Fixed node comparisons by using set:has-same-node - Implemented bibliolist * xslt/docbook/html/db2html-list.xsl: * xslt/docbook/html/db2html-classsynopsis.xsl: - Consolidated properties for CSS styling * xslt/docbook/html/db2html-autotoc.xsl: - Documentation edit svn path=/trunk/; revision=985
Diffstat (limited to 'test')
-rw-r--r--test/testbook/testbook.xml151
1 files changed, 141 insertions, 10 deletions
diff --git a/test/testbook/testbook.xml b/test/testbook/testbook.xml
index 65483b2d..91db051f 100644
--- a/test/testbook/testbook.xml
+++ b/test/testbook/testbook.xml
@@ -788,6 +788,109 @@ Running stylesheet and saving result took 144 ms
</section> <!-- screen -->
+<section id="cmdsynopsis">
+ <title>Commands</title>
+ <cmdsynopsis>
+ <command>cd</command>
+ <arg choice="req"><replaceable>directory</replaceable></arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>cal</command>
+ <arg>-j</arg>
+ <arg>-y</arg>
+ <arg>month <arg>year</arg></arg>
+ </cmdsynopsis>
+ <cmdsynopsis>
+ <command>chgrp</command>
+ <arg>-R <group>
+ <arg>-H</arg>
+ <arg>-L</arg>
+ <arg>-P</arg>
+ </group></arg>
+ <arg>-f</arg>
+ <arg choice='plain'><replaceable>group</replaceable></arg>
+ <arg rep='repeat' choice='plain'><replaceable>file</replaceable></arg>
+ </cmdsynopsis>
+ <para>Here we use an <sgmltag>sbr</sgmltag> element:</para>
+ <cmdsynopsis>
+ <command>ls</command>
+ <group><arg>--all</arg><arg>--almost-all</arg></group>
+ <sbr/>
+ <arg>--ignore-backups</arg>
+ <sbr/>
+ <arg>--directory</arg>
+ <sbr/>
+ <arg>--human-readable</arg>
+ <sbr/>
+ <arg>--ignore=<replaceable>PATTERN</replaceable></arg>
+ <sbr/>
+ <arg>-l</arg>
+ <sbr/>
+ <arg rep="repeat"><replaceable>FILE</replaceable></arg>
+ </cmdsynopsis>
+ <para>And here we put <sgmltag>sbr</sgmltag> elements inside
+ <sgmltag>arg</sgmltag> and <sgmltag>group</sgmltag> elements:</para>
+ <cmdsynopsis>
+ <command>ls</command>
+ <group><arg>--all</arg><sbr/><arg>--almost-all</arg></group>
+ <arg>--ignore=<sbr/><group><replaceable>PATTERN</replaceable><sbr/><replaceable>PATTERN</replaceable><sbr/><replaceable>PATTERN</replaceable></group></arg>
+ <sbr/>
+ <arg>--ignore=<group><replaceable>PATTERN</replaceable><sbr/><replaceable>PATTERN</replaceable><sbr/><replaceable>PATTERN</replaceable></group></arg>
+ <sbr/>
+ <group><arg choice="req">fe=<sbr/>fi</arg><arg>fo</arg><sbr/><arg>fum</arg></group>
+ <sbr/>
+ <arg>-l</arg>
+ <arg rep="repeat"><replaceable>FILE</replaceable></arg>
+ </cmdsynopsis>
+
+ <para>Also, <sgmltag>sbr</sgmltag> tags with fragments:</para>
+ <cmdsynopsis>
+ <command>foo</command>
+ <group><synopfragmentref linkend="synopfrag1"/><arg>foo</arg><sbr/><arg>bar</arg></group>
+ <arg><synopfragmentref linkend="synopfrag2"/>foo=<sbr/>bar</arg>
+ <synopfragment id="synopfrag1">
+ <group><arg>foo</arg><sbr/><arg>bar</arg></group>
+ <arg>foo=<sbr/>bar</arg>
+ </synopfragment>
+ <synopfragment id="synopfrag2">
+ <group><arg>foo</arg><sbr/><arg>bar</arg></group>
+ <arg>foo=<sbr/>bar</arg>
+ </synopfragment>
+ </cmdsynopsis>
+
+ <para>Here we put two <sgmltag>cmdsynopsis</sgmltag> elements inside
+ a single <sgmltag>synopsis</sgmltag> element:</para>
+ <synopsis><cmdsynopsis>
+ <command>grep</command>
+ <arg><replaceable>options</replaceable></arg>
+ <arg choice="plain"><replaceable>PATTERN</replaceable></arg>
+ <arg rep="repeat"><replaceable>FILE</replaceable></arg>
+ </cmdsynopsis><cmdsynopsis>
+ <command>grep</command>
+ <arg><replaceable>options</replaceable></arg>
+ <group>
+ <arg>-e <replaceable>PATTERN</replaceable></arg>
+ <arg>-f <replaceable>FILE</replaceable></arg>
+ </group>
+ <arg rep="repeat"><replaceable>FILE</replaceable></arg>
+ </cmdsynopsis></synopsis>
+ <para>Here we just put both commands in a single <sgmltag>cmdsynopsis</sgmltag>
+ element:</para>
+ <cmdsynopsis>
+ <command>grep</command>
+ <arg><replaceable>options</replaceable></arg>
+ <arg choice="plain"><replaceable>PATTERN</replaceable></arg>
+ <arg rep="repeat"><replaceable>FILE</replaceable></arg>
+ <command>grep</command>
+ <arg><replaceable>options</replaceable></arg>
+ <group>
+ <arg>-e <replaceable>PATTERN</replaceable></arg>
+ <arg>-f <replaceable>FILE</replaceable></arg>
+ </group>
+ <arg rep="repeat"><replaceable>FILE</replaceable></arg>
+ </cmdsynopsis>
+</section>
+
<section id="misc-block">
<title>Miscellaneous</title>
@@ -1753,23 +1856,49 @@ porttitor condimentum nulla.</para>
</chapter> <!-- classsynopsis -->
<glossary id="glossary">
- <glossdiv id="glossary-desktop">
- <title>GNOME Desktop Terms</title>
- <glossentry id="gloss-button">
- <glossterm>button</glossterm>
- <glossdef><para>A user interface element that you use to start an action.
- There are many types of button in the GNOME Desktop. Some buttons do not have
- labels, so you do not have a convenient reference term. Although a button does
- not have a name, there might be a tooltip for the button. If the text in the
- tooltip is appropriate, use that text as the button name.</para></glossdef>
+ <glossdiv id="glossary-div">
+ <title>A Glossary Division</title>
+ <glosslist>
+ <title>A Glossary List</title>
+ <glossentry>
+ <glossterm>applet</glossterm>
+ <glossdef>
+ <para>An applet is a small, interactive application that resides within
+ a panel, for example the <application>CD Player</application>. Each
+ applet has a simple user interface that you can operate with the mouse
+ or keyboard.</para>
+ </glossdef>
+ </glossentry>
+ <glossentry>
+ <glossterm>desktop</glossterm>
+ <glossdef>
+ <para>The part of the GNOME Desktop where there are no interface
+ graphical items, such as panels and windows.</para>
+ </glossdef>
+ </glossentry>
+ </glosslist>
+ <glossentry id="gloss-background">
+ <glossterm>desktop background</glossterm>
+ <abbrev>background</abbrev>
+ <glossdef>
+ <para>The image or color that is applied to your desktop.</para>
+ <glossseealso otherterm="gloss-background"/>
+ </glossdef>
+ </glossentry>
+ <glossentry>
+ <glossterm>desktop</glossterm>
+ <glosssee otherterm="gloss-background"/>
</glossentry>
- </glossdiv> <!-- glossary-desktop -->
+ </glossdiv> <!-- glossary-div -->
</glossary>
<bibliography id="bibliography">
<bibliodiv id="bibliodiv">
<title>A Bibliography Division</title>
+ <bibliolist>
+ <title>A <sgmltag>bibliolist</sgmltag></title>
+
<biblioentry>
<abbrev>AhoSethiUllman96</abbrev>
<authorgroup>
@@ -1804,6 +1933,8 @@ porttitor condimentum nulla.</para>
<pagenums>988-999</pagenums>
</biblioentry>
+ </bibliolist>
+
<biblioentry id="Walsh97">
<abbrev>Walsh97</abbrev>
<biblioset relation='journal'>