mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
converted by Donna. Hooked it into the build system so they are only built when specifically asked for, and when doing "make dist". They're not perfect; in particular, there are the following problems: - The plain-text FAQ should be built from FAQ.xml, but this is not currently done. (The text FAQ has been left in for now.) - The PS/PDF building doesn't work -- it fails with an incomprehensible error message which I haven't yet deciphered. Nonetheless, I'm putting it in so others can see it. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3153
64 lines
1.9 KiB
XML
64 lines
1.9 KiB
XML
<?xml version="1.0"?> <!-- -*- sgml -*- -->
|
|
<!DOCTYPE xsl:stylesheet [ <!ENTITY vg-css SYSTEM "vg_basic.css"> ]>
|
|
|
|
<xsl:stylesheet
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
|
|
<xsl:import href="vg-common.xsl"/>
|
|
|
|
<!-- use 8859-1 encoding -->
|
|
<xsl:output method="html" encoding="ISO-8859-1" indent="yes"/>
|
|
|
|
<!-- we include the css directly when generating one large file -->
|
|
<xsl:template name="user.head.content">
|
|
<style type="text/css" media="screen">
|
|
<xsl:text>&vg-css;</xsl:text>
|
|
</style>
|
|
</xsl:template>
|
|
|
|
<!-- We don't like tables with borders -->
|
|
<xsl:template match="revhistory" mode="titlepage.mode">
|
|
<xsl:variable name="numcols">
|
|
<xsl:choose>
|
|
<xsl:when test="//authorinitials">3</xsl:when>
|
|
<xsl:otherwise>2</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<table width="100%" border="0" summary="Revision history">
|
|
<tr>
|
|
<th align="left" colspan="{$numcols}">
|
|
<h4>Revision History</h4>
|
|
</th>
|
|
</tr>
|
|
<xsl:apply-templates mode="titlepage.mode">
|
|
<xsl:with-param name="numcols" select="$numcols"/>
|
|
</xsl:apply-templates>
|
|
</table>
|
|
</xsl:template>
|
|
|
|
<!-- question and answer set mods -->
|
|
<xsl:template match="answer">
|
|
<xsl:variable name="deflabel">
|
|
<xsl:choose>
|
|
<xsl:when test="ancestor-or-self::*[@defaultlabel]">
|
|
<xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
|
|
/@defaultlabel"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$qanda.defaultlabel"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<tr class="{name(.)}">
|
|
<td><xsl:text> </xsl:text></td>
|
|
<td align="left" valign="top">
|
|
<xsl:apply-templates select="*[name(.) != 'label']"/>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="2"><xsl:text> </xsl:text></td></tr>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|
|
|