]> granicus.if.org Git - docbook-dsssl/commitdiff
Place-holder implementation for simplelist.
authorTim Waugh <twaugh@redhat.com>
Wed, 4 Feb 2004 17:35:10 +0000 (17:35 +0000)
committerTim Waugh <twaugh@redhat.com>
Wed, 4 Feb 2004 17:35:10 +0000 (17:35 +0000)
xsl/manpages/docbook.xsl
xsl/manpages/lists.xsl

index a6051407a0370e77bc257201e3e07ffdf923cf01..37c10bbff9b813b9b7ee203d597fe64b09ccd8df 100644 (file)
@@ -86,7 +86,9 @@
   <xsl:text>&#10;.PP&#10;</xsl:text>
   <xsl:for-each select="node()">
     <xsl:choose>
-      <xsl:when test="self::literallayout|self::informaltable|self::screen|self::programlisting|self::itemizedlist|self::orderedlist|self::variablelist">
+      <xsl:when test="self::literallayout|self::informaltable|self::screen|
+                     self::programlisting|self::itemizedlist|
+                     self::orderedlist|self::variablelist|self::simplelist">
         <xsl:text>&#10;</xsl:text>
         <xsl:apply-templates select="."/>
       </xsl:when>
index 93facf6ce9b83fdde4433ac8859f5ba52120b598..5e956d4dc7a1b8a7a76698a41804a296cfb67946 100644 (file)
@@ -9,7 +9,8 @@
   <xsl:for-each select="node()">
     <xsl:choose>
       <xsl:when test="self::literallayout|self::screen|self::programlisting|
-                     self::itemizedlist|self::orderedlist|self::variablelist">
+                     self::itemizedlist|self::orderedlist|self::variablelist|
+                     self::simplelist">
         <xsl:text>&#10;</xsl:text>
         <xsl:apply-templates select="."/>
       </xsl:when>
   <xsl:text>.LP&#10;.RE&#10;.IP&#10;</xsl:text>
 </xsl:template>
 
+<!-- simplelist -->
+
+<xsl:template match="simplelist[@type='inline']">
+  <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="simplelist[@type='inline']/member">
+  <xsl:apply-templates/>
+  <xsl:text>, </xsl:text>
+</xsl:template>
+
+<xsl:template match="simplelist[@type='inline']/member[position()=last()]"
+             priority="2">
+  <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="simplelist[@type='vert' and @columns='1']">
+  <xsl:text>&#10;.IP&#10;</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:text>.LP&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="simplelist[@type='vert' and @columns='1']/member">
+  <xsl:apply-templates/>
+  <xsl:text>&#10;&#10;</xsl:text>
+</xsl:template>
+
 </xsl:stylesheet>