From 8f8a9f01909ba29e2b781310baeeaaddc3f15f0d Mon Sep 17 00:00:00 2001 From: "Gerald W. Carter" Date: Tue, 22 Apr 2008 10:09:40 -0500 Subject: Moving docs tree to docs-xml to make room for generated docs in the release tarball. (This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14) --- docs-xml/xslt/db2latex-xsl/xsl/glossary.mod.xsl | 392 ++++++++++++++++++++++++ 1 file changed, 392 insertions(+) create mode 100644 docs-xml/xslt/db2latex-xsl/xsl/glossary.mod.xsl (limited to 'docs-xml/xslt/db2latex-xsl/xsl/glossary.mod.xsl') diff --git a/docs-xml/xslt/db2latex-xsl/xsl/glossary.mod.xsl b/docs-xml/xslt/db2latex-xsl/xsl/glossary.mod.xsl new file mode 100644 index 0000000000..926dd6bdbb --- /dev/null +++ b/docs-xml/xslt/db2latex-xsl/xsl/glossary.mod.xsl @@ -0,0 +1,392 @@ + + %xsldoc.ent; ]> + + + + + + + + $Id: glossary.mod.xsl,v 1.16 2004/01/26 08:58:10 j-devenish Exp $ + + + &ramon; + &james; + + + 20002001200220032004 + Ramon Casellas + + + &rev_2003_05; + + + Glossaries <filename>glossary.mod.xsl</filename> + + + + Although &LaTeX; provides some glossary support, the better glossary + management support motivates the bypass of the &LaTeX; + makeglossary command. + + + + + + + Process glossary elements + + + + The glossary element is the entry point to a + &DocBook; glossary. The &DB2LaTeX; processing of the element is + quite straight- forward. First thing is to check whether the + document is a book or article. In + both cases, two new &LaTeX; commands are defined: dbglossary and dbglossdiv. In the former case, they + are mapped to chapter* and + section*. In the second case + to section* and subsection*. The description environment is used for + glossentries. + + + + + &no_var; + + + + Call template map.begin. + Apply Templates for Preamble, GlossDivs and GlossEntries (serial). + Call template map.end. + + &essential_preamble; + + + + &test_book; + &test_gloss; + &test_ieeebiblio; + &test_mapping; + + + + + &mapping; + + + + + + + + + + + + + \noindent% + \begin{description} + + \end{description} + + + + + + Process glossdiv and glosslist elements + + + Invokes the mapping templates and applies content templates. + + + + &no_var; + + + + &mapping; + + + + + + + + + + + + + Process glossentry elements + + + Simply applies templates. + + + + &no_var; + + + + + + + + + Process a glossentry's glossterm elements + + + Creates a &LaTeX; item and + a hypertarget, then applies + templates. + + + + &no_var; + + + + \item[ + + \hypertarget{ + + } + + { + + }] + + + + Process a glossentry's acronym elements + + + Format an acronym as part of a glossentry. + + + + &no_var; + + + + The acronym is formatted as monospaced text + and delimited by round brackets. It appears in the body + (e.g. glossdef) region of the glossary entry, not + as part of the glossterm. + + + The delimiters should probably be localised. + + + + + ( ) + + + + Process a glossentry's abbrev elements + + + Format an abbrev as part of a glossentry. + + + + &no_var; + + + + The abbrev is delimited by square brackets. It + appears in the body (e.g. + glossdef) region of the glossary entry, not as + part of the glossterm. + + + The delimiters should probably be localised. + + + + + [ ] + + + + Process a glossentry's revhistory elements + + + Currently, revhistories + are suppressed within glossentries. + + + + &no_var; + + + + + + Process a glossentry's glossdef elements + + + Applies templates. + + + + &no_var; + + + + + + + + + Process glossseealso and glosssee elements + + + Format a glossary cross-reference. + + + + &no_var; + + + + + Will call the following gentet templates: + gentext.element.name, + gentext.space, + gentext.startquote, + gentext.endquote. + It will then output a full stop (period). + + + + + If the otherterm was successfully found, and this + element is empty, then the appropriate cross-reference will be + generated. This this element is not empty but the otherterm was + also found, the behaviour will depend on . + + + + + + &test_book; + &test_gloss; + &test_ieeebiblio; + + + + + + + + + + + + + + + + + + \hyperlink{ + }{ + + + + + + + + + } + + + + + + + . + + + + + + + + + + + + Essential preamble for glossary.mod.xsl support + + + + Defines the dbglossary + command. + + + + + &no_var; + + + + &preamble; + + + + + + + + \newcommand{\dbglossary}[1]{\chapter*{#1}% + \markboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}}% + \newcommand{\dbglossdiv}[1]{\section*{#1}}% + + + \newcommand{\dbglossary}[1]{\section*{#1}}% + \newcommand{\dbglossdiv}[1]{\subsection*{#1}}% + + + + + + -- cgit