Commit [1910c9] default beta_0_5 Maximize Restore History

* Titled example.

* Abstract support.
* Legalnotice support.
* Procedure improvement.
* Verbatim in table cells.

marsgui marsgui 2006-05-13

added context/style/dbk-sup.tex
changed context/style/dbk-env.tex
changed context/style/dbk-sty.tex
changed xsl/abstract.xsl
changed xsl/common/common.xsl
changed xsl/contmap.xml
changed xsl/example.xsl
changed xsl/main.xsl
changed xsl/param.xsl
changed xsl/preamble.xsl
changed xsl/preface.xsl
changed xsl/procedure.xsl
changed xsl/table.xsl
changed xsl/toc_lof.xsl
copied xsl/misc.xsl -> xsl/legalnotice.xsl
context/style/dbk-sup.tex Diff Switch to side-by-side view
Loading...
context/style/dbk-env.tex Diff Switch to side-by-side view
Loading...
context/style/dbk-sty.tex Diff Switch to side-by-side view
Loading...
xsl/abstract.xsl Diff Switch to side-by-side view
Loading...
xsl/common/common.xsl Diff Switch to side-by-side view
Loading...
xsl/contmap.xml Diff Switch to side-by-side view
Loading...
xsl/example.xsl Diff Switch to side-by-side view
Loading...
xsl/main.xsl Diff Switch to side-by-side view
Loading...
xsl/param.xsl Diff Switch to side-by-side view
Loading...
xsl/preamble.xsl Diff Switch to side-by-side view
Loading...
xsl/preface.xsl Diff Switch to side-by-side view
Loading...
xsl/procedure.xsl Diff Switch to side-by-side view
Loading...
xsl/table.xsl Diff Switch to side-by-side view
Loading...
xsl/toc_lof.xsl Diff Switch to side-by-side view
Loading...
xsl/misc.xsl to xsl/legalnotice.xsl
--- a/xsl/misc.xsl
+++ b/xsl/legalnotice.xsl
@@ -2,114 +2,51 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
 
 <!--############################################################################
-    Feuille de style de transformation XML DocBook -> LaTeX 
+    XSLT Stylesheet DocBook -> ConTeXt
     ############################################################################ -->
 
-<xsl:template name="title.map">
-  <xsl:param name="keyword" select="local-name(.)"/>
-  <xsl:param name="title"   select="title"/>
-
-  <!-- first, the command -->
-  <xsl:call-template name="cont.map">
-    <xsl:with-param name="keyword" select="$keyword"/>
-  </xsl:call-template>
-
-  <!-- the label if it exists -->
-  <xsl:if test="@id">
-    <xsl:text>[</xsl:text>
- 	  <xsl:value-of select="@id"/>
-    <xsl:text>]</xsl:text>
+<xsl:template match="legalnotice">
+  <xsl:text>\startlegalnotice&#10;</xsl:text>
+  <xsl:if test="title">
+    <xsl:text>\legaltitle{</xsl:text>
+    <xsl:apply-templates select="title"/>
+    <xsl:text>}&#10;</xsl:text>
   </xsl:if>
-
-  <!-- the title itself -->
-  <xsl:text>{</xsl:text> 
-  <xsl:call-template name="normalize-scape">
-    <xsl:with-param name="string" select="$title"/>
-  </xsl:call-template>
-  <xsl:text>}</xsl:text> 
+  <xsl:apply-templates select="*[not(self::title)]"/>
+  <xsl:text>&#10;&#10;\stoplegalnotice&#10;</xsl:text>
 </xsl:template>
 
-
-<xsl:template match="book|article">
-<xsl:text>% output=pdftex
-
-\chardef\utfunihashmode=1
-\enableregime [utf]
-
-\setuplayout[middle]
-\setupinteraction[state=start]
-\setupcolors[state=start]
-
-\definedescription[dbvarentry][headstyle=bold]
-
-\definedescription[dbglossentry]%
-   [location=serried,headstyle=bold,before=\vskip0pt,after=,%
-	  width=broad,distance=1em,hang=10,indentnext=no]
-
-\defineenumeration[dbexample]
-  [location=top, text=Example, before=\blank, after=\blank]
-
-</xsl:text>
-<xsl:if test="//biblioentry">
-  <xsl:text>\usemodule[bib]
-\setuppublications[criterium=all]
-</xsl:text>
-  <xsl:for-each select="//biblioentry">
-    <xsl:apply-templates select="." mode="list"/>
-  </xsl:for-each>
-</xsl:if>
-
-<xsl:if test="@lang">
-  <xsl:text>\mainlanguage[</xsl:text>
-  <xsl:value-of select="@lang"/>
-  <xsl:text>]
-</xsl:text>
-</xsl:if>
-
-\starttext
-
-<xsl:variable name="title">
-  <xsl:choose>
-  <xsl:when test="./title">
-    <xsl:value-of select="./title"/>
-  </xsl:when>
-  <xsl:when test="./bookinfo/title">
-    <xsl:value-of select="./bookinfo/title"/>
-  </xsl:when>
-  <xsl:otherwise>
-    <xsl:value-of select="./articleinfo/title"/>
-  </xsl:otherwise>
-  </xsl:choose>
-</xsl:variable>
-
-<xsl:if test="$title">
-  <xsl:text>\startstandardmakeup
-  \midaligned{\bfd </xsl:text>
-  <xsl:call-template name="normalize-scape">
-    <xsl:with-param name="string" select="$title"/>
-  </xsl:call-template>
-  <xsl:text>}
-  \stopstandardmakeup&#10;</xsl:text>
-</xsl:if>
-
-<xsl:text>
-\completecontent
-</xsl:text>
-
-<!-- Apply templates -->
-<xsl:apply-templates/>
-<xsl:if test="*//indexterm">
- <xsl:text>\completeindex&#10;</xsl:text>
-</xsl:if>
-<xsl:text>\stoptext
-</xsl:text>
+<xsl:template match="bookinfo|articleinfo" mode="legalnotice">
+  <xsl:if test="copyright">
+    <xsl:apply-templates select="copyright" mode="titlepage.mode"/>
+    <xsl:text>&#10;\blank&#10;</xsl:text>
+  </xsl:if>
+  <xsl:apply-templates select="legalnotice"/>
 </xsl:template>
 
-<!-- TBD -->
-<xsl:template match="book/bookinfo"/>
+<xsl:template match="releaseinfo">
+  <xsl:apply-templates/>
+</xsl:template>
 
-<xsl:template match="othercredit"/>
+<xsl:template match="holder" mode="titlepage.mode">
+  <xsl:apply-templates/>
+</xsl:template>
 
-<xsl:template match="article/articleinfo"/>
+<xsl:template match="copyright" mode="titlepage.mode">
+  <xsl:call-template name="gentext">
+    <xsl:with-param name="key" select="'Copyright'"/>
+  </xsl:call-template>
+  <xsl:call-template name="gentext.space"/>
+  <xsl:text>\copyright{}</xsl:text>
+  <xsl:call-template name="gentext.space"/>
+  <xsl:call-template name="copyright.years">
+    <xsl:with-param name="years" select="year"/>
+    <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
+    <xsl:with-param name="single.year.ranges"
+                    select="$make.single.year.ranges"/>
+  </xsl:call-template>
+  <xsl:call-template name="gentext.space"/>
+  <xsl:apply-templates select="holder" mode="titlepage.mode"/>
+</xsl:template>
 
 </xsl:stylesheet>