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/index.mod.xsl | 470 +++++++++++++++++++++++++++ 1 file changed, 470 insertions(+) create mode 100644 docs-xml/xslt/db2latex-xsl/xsl/index.mod.xsl (limited to 'docs-xml/xslt/db2latex-xsl/xsl/index.mod.xsl') diff --git a/docs-xml/xslt/db2latex-xsl/xsl/index.mod.xsl b/docs-xml/xslt/db2latex-xsl/xsl/index.mod.xsl new file mode 100644 index 0000000000..b58e1d1910 --- /dev/null +++ b/docs-xml/xslt/db2latex-xsl/xsl/index.mod.xsl @@ -0,0 +1,470 @@ + + %xsldoc.ent; ]> + + + + + + + $Id: index.mod.xsl,v 1.17 2004/01/27 05:59:51 j-devenish Exp $ + + + &ramon; + &james; + + + 2000200120022003 + Ramon Casellas + + + &rev_2003_05; + + + Indices <filename>index.mod.xsl</filename> + + The file index.mod.xsl contains the + XSL template for index. + + Describe indexterm-range key. + + + An indexterm-range XSLT key is defined for + all startofrange indexterm + elements, matching their id attribute. + + + + + + + + + + Process index and setindex elements + + + Produce a chapter-level index in &LaTeX;. + + + + &no_var; + + + + + + You will need to run your typesetter at least twice, and + possibly three times, to have the index generated normally (you + will also need to run the makeidx command). + + + + &essential_preamble; + + + + &test_book; + &test_index; + &test_draft; + + + + + + \setlength\saveparskip\parskip + \setlength\saveparindent\parindent + \begin{dbtolatexindex}{ + + } + \setlength\tempparskip\parskip \setlength\tempparindent\parindent + \parskip\saveparskip \parindent\saveparindent + \noindent + + + \parskip\tempparskip + \parindent\tempparindent + \makeatletter\@input@{\jobname.ind}\makeatother + + \end{dbtolatexindex} + + + + Essential preamble for index.mod.xsl support + + + + This preamble aids the following: + + + + Allow user to override the &LaTeX; default index name + with a &DocBook; localisation. + + + Integrate index/@id cross-references + with &LaTeX; and tables of contents (makes indices + behave a bit like chapters). + + + Allow preamble templates or + mappings to be applied for indices. + + + + + + + + + &preamble; + + + + + + \m@ne \refstepcounter{chapter}\fi% + \label{#1}\hypertarget{#1}{\dbtolatex@@indexname}% + \global\docbooktolatexprintindexfalse} +\def\indexname{\ifdocbooktolatexprintindex\dbtolatex@indexlabel\else\dbtolatex@@indexname\fi} +\dbtolatex@@theindex + } + { +\dbtolatex@@endtheindex\let\indexname\dbtolatex@@indexname + } + +\newlength\saveparskip \newlength\saveparindent +\newlength\tempparskip \newlength\tempparindent +]]> + + + + + + + Process indexterm elements + + + Identify an instance of an indexed term. + + + + + + + + + + + style + + &LaTeX; code used to format the displayed entry. + By default, this is drawn from any latex-index-style + processing instructions (and is therefore empty most of the time). + + + + + + + A &LaTeX; index command + is issued. When an index element is included + in your document and indexing is enabled, this indexterm will + be indexed. + + + When draft mode is + enabled, the physical location of indexterms will be highlighted + within the body of the text as well as appearing in the index + proper. + + + &DB2LaTeX; includes some logic to handle the + startofrange and endofrange + classes. + + + It is possible to format an entry (e.g. + make it bold or italic) by inserting a processing instruction + named latex-index-style in the appropriate + subterm. + + + + + &test_book; + &test_ddh; + &test_draft1; + &test_draft2; + &test_index; + + + + + + + + + + + + + + + + + Error: Only one attribute (@class or @zone) is in indexterm possible! + + + + + \index{ + + |(} + + + + + Error: No indexterm with + id=' + ' found! + Check your attributs id/startref in your indexterms! + + + + + + \index{ + + |)} + + + + + + \index{ + + } + + + + + + + WARNING: Element '' in indexterm not supported and skipped! + + + + + + Process the contents of indexterms + + + Register a primary index term. + + + + &no_var; + + + + Calls . + + + + + + + + + Process the contents of indexterms + + + Register a secondary or tertiary index term. + + + + &no_var; + + + + Calls . + + + + + ! + + + + + Process the contents of indexterms + + + Register a primary, secondary or tertiary index term. + + + + &no_var; + + + + + If no sortas attribute is + present, the contents of primary, + secondary and tertiary + elements are converted to text-only and no templates are + applied. If the sortas + attribute is present and non-empty, its value is used for indexing + and sorting (but not for display). + + + + + If a latex-index-style processing instruction is + present, the displayed indexterm will be formatted by treating + the content of the PI as a &LaTeX; command. + + + + + + + + + + + + + + + + + + + + @{ + + { + + }} + + + + + + + + + + @{ + + { + + }} + + + + + + + + Process the contents of see and seealso elements + + + Annotate an index entry with a See or See also cross-reference. + + + + &no_var; + + + + Templates are applied. + See or see also text + is generated by gentext.element.name + and formatted in italics. + + + + + |textit{ + + } { + + + } + + + + Skip indexentry-related elements + + + Ignores the elements. + + + + &no_var; + + + + &DB2LaTeX; only supports indices that are generated by &LaTeX; itself. + + + + + + -- cgit