Update of /var/cvs/config/xslt
In directory james.mmbase.org:/tmp/cvs-serv17024
Modified Files:
docbook2block.xslt
Log Message:
support for variablelist's
See also: http://cvs.mmbase.org/viewcvs/config/xslt
Index: docbook2block.xslt
===================================================================
RCS file: /var/cvs/config/xslt/docbook2block.xslt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- docbook2block.xslt 16 Jan 2009 22:44:43 -0000 1.7
+++ docbook2block.xslt 30 Jan 2009 21:30:22 -0000 1.8
@@ -19,7 +19,7 @@
Could perhaps use nwalsh xslt but that seems a huge overkill. It should be
rather simple, we probably use only a small subset of docbook.
@author: Michiel Meeuwissen
- @version: $Id: docbook2block.xslt,v 1.7 2009/01/16 22:44:43 michiel Exp $
+ @version: $Id: docbook2block.xslt,v 1.8 2009/01/30 21:30:22 michiel Exp $
@since: MMBase-1.9
-->
<xsl:stylesheet
@@ -109,6 +109,28 @@
</ol>
</xsl:template>
+ <xsl:template match="variablelist">
+ <dl class="variable">
+ <xsl:apply-templates />
+ </dl>
+ </xsl:template>
+
+ <xsl:template match="varlistentry">
+ <xsl:apply-templates select="*" />
+ </xsl:template>
+
+ <xsl:template match="term">
+ <dt>
+ <xsl:apply-templates />
+ </dt>
+ </xsl:template>
+ <xsl:template match="varlistentry/listitem">
+ <dd>
+ <xsl:copy-of select="@*" />
+ <xsl:apply-templates select="*" />
+ </dd>
+ </xsl:template>
+
<xsl:template match="listitem">
<li>
<xsl:apply-templates />
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs