2004-05-08 15:19:53 +01:00
|
|
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
version="1.0">
|
|
|
|
|
2004-05-19 21:16:58 +01:00
|
|
|
<!-- screen -->
|
2004-05-08 15:19:53 +01:00
|
|
|
<xsl:template match="screen">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="child::* = userinput">
|
2004-05-29 21:00:54 +01:00
|
|
|
<pre class="userinput">
|
2004-12-19 21:17:48 +00:00
|
|
|
<xsl:apply-templates/>
|
2004-05-08 15:19:53 +01:00
|
|
|
</pre>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<pre class="{name(.)}">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</pre>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
2004-05-08 19:25:15 +01:00
|
|
|
|
2004-12-19 21:17:48 +00:00
|
|
|
<xsl:template match="userinput">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="ancestor::screen">
|
|
|
|
<kbd class="command">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</kbd>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:apply-imports/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2004-05-08 19:25:15 +01:00
|
|
|
<!-- variablelist -->
|
2004-05-19 21:16:58 +01:00
|
|
|
<xsl:template match="variablelist">
|
|
|
|
<div class="{name(.)}">
|
2004-08-10 20:25:59 +01:00
|
|
|
<xsl:if test="title | bridgehead">
|
2004-05-19 21:16:58 +01:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="@role = 'materials'">
|
2004-05-20 00:44:41 +01:00
|
|
|
<h2>
|
2004-08-10 20:25:59 +01:00
|
|
|
<xsl:value-of select="title | bridgehead"/>
|
2004-05-20 00:44:41 +01:00
|
|
|
</h2>
|
2004-05-19 21:16:58 +01:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2004-05-20 00:44:41 +01:00
|
|
|
<h3>
|
2004-08-10 20:25:59 +01:00
|
|
|
<xsl:value-of select="title | bridgehead"/>
|
2004-05-20 00:44:41 +01:00
|
|
|
</h3>
|
2004-05-19 21:16:58 +01:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:if>
|
|
|
|
<dl>
|
|
|
|
<xsl:if test="@role">
|
|
|
|
<xsl:attribute name="class">
|
|
|
|
<xsl:value-of select="@role"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:apply-templates select="varlistentry"/>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</xsl:template>
|
2004-05-20 22:48:55 +01:00
|
|
|
|
|
|
|
<!-- Body attributes -->
|
|
|
|
<xsl:template name="body.attributes">
|
|
|
|
<xsl:attribute name="id">
|
|
|
|
<xsl:text>lfs</xsl:text>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:attribute name="class">
|
|
|
|
<xsl:value-of select="substring-after(/book/bookinfo/subtitle, ' ')"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:template>
|
|
|
|
|
2004-12-19 21:17:48 +00:00
|
|
|
<!-- External URLs in italic font -->
|
|
|
|
<xsl:template match="ulink" name="ulink">
|
|
|
|
<a>
|
|
|
|
<xsl:if test="@id">
|
|
|
|
<xsl:attribute name="id">
|
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
|
|
|
|
<i>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="count(child::node())=0">
|
|
|
|
<xsl:value-of select="@url"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</i>
|
|
|
|
</a>
|
2004-05-20 22:48:55 +01:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2004-05-08 15:19:53 +01:00
|
|
|
</xsl:stylesheet>
|