Line | |
---|
1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
3 | xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" |
---|
4 | version="1.0"> |
---|
5 | |
---|
6 | <!-- Import the HTML stylesheet --> |
---|
7 | <xsl:import |
---|
8 | href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> |
---|
9 | |
---|
10 | <xsl:param name="chapter.autolabel" select="0"/> |
---|
11 | <xsl:param name="refentry.generate.name" select="0"/> |
---|
12 | <xsl:param name="refentry.generate.title" select="1"/> |
---|
13 | <xsl:param name="make.year.ranges" select="1"/> |
---|
14 | |
---|
15 | <xsl:template match="variablelist"> |
---|
16 | <xsl:choose> |
---|
17 | <xsl:when test="@spacing='boost'"> |
---|
18 | <p><xsl:apply-templates mode="boost.variablelist"/></p> |
---|
19 | </xsl:when> |
---|
20 | <xsl:otherwise> |
---|
21 | <xsl:apply-imports /> |
---|
22 | </xsl:otherwise> |
---|
23 | </xsl:choose> |
---|
24 | </xsl:template> |
---|
25 | |
---|
26 | <xsl:template match="varlistentry" mode="boost.variablelist"> |
---|
27 | <xsl:if test="position() > 1"> |
---|
28 | <br/> |
---|
29 | </xsl:if> |
---|
30 | <b><xsl:apply-templates select="term"/></b>: |
---|
31 | |
---|
32 | <xsl:choose> |
---|
33 | <xsl:when test="local-name(listitem/*[1])='simpara' or |
---|
34 | local-name(listitem/*[1])='para'"> |
---|
35 | <xsl:apply-templates |
---|
36 | select="listitem/*[1]/*|listitem/*[1]/text()"/> |
---|
37 | <xsl:apply-templates select="(listitem/*|listitem/text())[position() > 1]"/> |
---|
38 | </xsl:when> |
---|
39 | <xsl:otherwise> |
---|
40 | <xsl:apply-templates select="listitem/*|listitem/text()"/> |
---|
41 | </xsl:otherwise> |
---|
42 | </xsl:choose> |
---|
43 | </xsl:template> |
---|
44 | </xsl:stylesheet> |
---|
Note: See
TracBrowser
for help on using the repository browser.