[passepartout] some docbook improvements



commit 7f8d88b960931acb4962ee260ce130271f6fc120
Author: Sven Herzberg <herzi lanedo com>
Date:   Thu Apr 23 11:41:11 2009 +0200

    some docbook improvements
    
    * src/xml2ps/docbook.xslt: apply the title also to standalone titles; add
      arrows to guimenus if they are in menuchoice
---
 src/xml2ps/docbook.xslt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/xml2ps/docbook.xslt b/src/xml2ps/docbook.xslt
index 3fda383..3216fb5 100644
--- a/src/xml2ps/docbook.xslt
+++ b/src/xml2ps/docbook.xslt
@@ -18,7 +18,7 @@
     </block-container>
   </xsl:template>
   
-  <xsl:template match="articleinfo/title">
+  <xsl:template match="articleinfo/title|title">
     <para align="center" span-columns="1" font-family="Helvetica" 
 	  font-size="24" margin-bottom="20pt">
       <xsl:apply-templates/>
@@ -120,6 +120,10 @@
     <font font-family="Helvetica-Bold"><xsl:apply-templates/></font>
   </xsl:template>
 
+  <!-- FIXME: properly use the next template and only append the arrow -->
+  <xsl:template match="menuchoice/guimenu">
+    <font font-family="Helvetica" font-size="80%"><xsl:value-of select="translate(string(.),&quot; &quot;,&quot;&#160;&quot;)"/>&#160;&#187;&#160;</font>
+  </xsl:template>
   <xsl:template match="guilabel|guimenu|guimenuitem|guibutton">
     <font font-family="Helvetica" font-size="80%"><xsl:value-of select="translate(string(.),&quot; &quot;,&quot;&#160;&quot;)"/></font>
   </xsl:template>
@@ -135,3 +139,4 @@
   </xsl:template>
 
 </xsl:stylesheet>
+<!-- vim:set sw=2: -->



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]