blob: c6c1cec94a06570f23b74807da97deda8bac61a0 [file] [log] [blame]
njn3e986b22004-11-30 10:43:45 +00001<?xml version="1.0"?> <!-- -*- sgml -*- -->
2<!DOCTYPE xsl:stylesheet [ <!ENTITY vg-css SYSTEM "vg_basic.css"> ]>
3
4<xsl:stylesheet
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
6
7<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
8<xsl:import href="vg-common.xsl"/>
9
10<!-- use 8859-1 encoding -->
11<xsl:output method="html" encoding="ISO-8859-1" indent="yes"/>
12
13<!-- we include the css directly when generating one large file -->
14<xsl:template name="user.head.content">
15 <style type="text/css" media="screen">
16 <xsl:text>&vg-css;</xsl:text>
17 </style>
18</xsl:template>
19
20<!-- We don't like tables with borders -->
21<xsl:template match="revhistory" mode="titlepage.mode">
22 <xsl:variable name="numcols">
23 <xsl:choose>
24 <xsl:when test="//authorinitials">3</xsl:when>
25 <xsl:otherwise>2</xsl:otherwise>
26 </xsl:choose>
27 </xsl:variable>
28 <table width="100%" border="0" summary="Revision history">
29 <tr>
30 <th align="left" colspan="{$numcols}">
31 <h4>Revision History</h4>
32 </th>
33 </tr>
34 <xsl:apply-templates mode="titlepage.mode">
35 <xsl:with-param name="numcols" select="$numcols"/>
36 </xsl:apply-templates>
37 </table>
38</xsl:template>
39
40<!-- question and answer set mods -->
41<xsl:template match="answer">
42 <xsl:variable name="deflabel">
43 <xsl:choose>
44 <xsl:when test="ancestor-or-self::*[@defaultlabel]">
45 <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
46 /@defaultlabel"/>
47 </xsl:when>
48 <xsl:otherwise>
49 <xsl:value-of select="$qanda.defaultlabel"/>
50 </xsl:otherwise>
51 </xsl:choose>
52 </xsl:variable>
53 <tr class="{name(.)}">
54 <td><xsl:text>&#160;</xsl:text></td>
55 <td align="left" valign="top">
56 <xsl:apply-templates select="*[name(.) != 'label']"/>
57 </td>
58 </tr>
59 <tr><td colspan="2"><xsl:text>&#160;</xsl:text></td></tr>
60</xsl:template>
61
62</xsl:stylesheet>
63