123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?xml version="1.0" encoding="ASCII"?>
- <!--This file was created automatically by html2xhtml-->
- <!--from the HTML stylesheets.-->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
- <!-- ********************************************************************
- $Id$
- ********************************************************************
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://docbook.sf.net/release/xsl/current/ for
- copyright and other information.
- ******************************************************************** -->
- <!-- ==================================================================== -->
- <!-- What should we do about styling blockinfo? -->
- <xsl:template match="blockinfo|info">
- <!-- suppress -->
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template name="block.object">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template match="para">
- <xsl:call-template name="paragraph">
- <xsl:with-param name="class">
- <xsl:if test="@role and $para.propagates.style != 0">
- <xsl:value-of select="@role"/>
- </xsl:if>
- </xsl:with-param>
- <xsl:with-param name="content">
- <xsl:if test="position() = 1 and parent::listitem">
- <xsl:call-template name="anchor">
- <xsl:with-param name="node" select="parent::listitem"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <xsl:template name="paragraph">
- <xsl:param name="class" select="''"/>
- <xsl:param name="content"/>
- <xsl:variable name="p">
- <p>
- <xsl:call-template name="dir"/>
- <xsl:if test="$class != ''">
- <xsl:apply-templates select="." mode="class.attribute">
- <xsl:with-param name="class" select="$class"/>
- </xsl:apply-templates>
- </xsl:if>
- <xsl:copy-of select="$content"/>
- </p>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$html.cleanup != 0">
- <xsl:call-template name="unwrap.p">
- <xsl:with-param name="p" select="$p"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="$p"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="simpara">
- <!-- see also listitem/simpara in lists.xsl -->
- <p>
- <xsl:if test="@role and $para.propagates.style != 0">
- <xsl:apply-templates select="." mode="class.attribute">
- <xsl:with-param name="class" select="@role"/>
- </xsl:apply-templates>
- </xsl:if>
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <xsl:template match="formalpara">
- <xsl:call-template name="paragraph">
- <xsl:with-param name="class">
- <xsl:if test="@role and $para.propagates.style != 0">
- <xsl:value-of select="@role"/>
- </xsl:if>
- </xsl:with-param>
- <xsl:with-param name="content">
- <xsl:call-template name="anchor"/>
- <xsl:apply-templates/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
- <!-- Only use title from info -->
- <xsl:template match="formalpara/info">
- <xsl:apply-templates select="title"/>
- </xsl:template>
- <xsl:template match="formalpara/title|formalpara/info/title">
- <xsl:variable name="titleStr">
- <xsl:apply-templates/>
- </xsl:variable>
- <xsl:variable name="lastChar">
- <xsl:if test="$titleStr != ''">
- <xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
- </xsl:if>
- </xsl:variable>
- <b>
- <xsl:copy-of select="$titleStr"/>
- <xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))">
- <xsl:value-of select="$runinhead.default.title.end.punct"/>
- </xsl:if>
- <xsl:text> </xsl:text>
- </b>
- </xsl:template>
- <xsl:template match="formalpara/para">
- <xsl:apply-templates/>
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template match="blockquote">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:if test="@lang or @xml:lang">
- <xsl:call-template name="language.attribute"/>
- </xsl:if>
- <xsl:call-template name="anchor"/>
- <xsl:choose>
- <xsl:when test="attribution">
- <table border="0" width="100%" cellspacing="0" cellpadding="0" class="blockquote" summary="Block quote">
- <tr>
- <td width="10%" valign="top"> </td>
- <td width="80%" valign="top">
- <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
- </td>
- <td width="10%" valign="top"> </td>
- </tr>
- <tr>
- <td width="10%" valign="top"> </td>
- <td colspan="2" align="right" valign="top">
- <xsl:text>--</xsl:text>
- <xsl:apply-templates select="attribution"/>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <blockquote>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:apply-templates/>
- </blockquote>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </xsl:template>
- <xsl:template match="blockquote/title|blockquote/info/title">
- <div class="blockquote-title">
- <p>
- <b>
- <xsl:apply-templates/>
- </b>
- </p>
- </div>
- </xsl:template>
- <xsl:template match="epigraph">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
- <xsl:if test="attribution">
- <div class="attribution">
- <span>--<xsl:apply-templates select="attribution"/></span>
- </div>
- </xsl:if>
- </div>
- </xsl:template>
- <xsl:template match="attribution">
- <span>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:apply-templates/>
- </span>
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template match="abstract|sidebar">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:call-template name="anchor"/>
- <xsl:call-template name="formal.object.heading">
- <xsl:with-param name="title">
- <xsl:apply-templates select="." mode="title.markup">
- <xsl:with-param name="allow-anchors" select="'1'"/>
- </xsl:apply-templates>
- </xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </div>
- </xsl:template>
- <xsl:template match="abstract/title|sidebar/title">
- </xsl:template>
- <xsl:template match="sidebar/sidebarinfo|sidebar/info"/>
- <!-- ==================================================================== -->
- <xsl:template match="msgset">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="msgentry">
- <xsl:call-template name="block.object"/>
- </xsl:template>
- <xsl:template match="simplemsgentry">
- <xsl:call-template name="block.object"/>
- </xsl:template>
- <xsl:template match="msg">
- <xsl:call-template name="block.object"/>
- </xsl:template>
- <xsl:template match="msgmain">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="msgmain/title">
- <b><xsl:apply-templates/></b>
- </xsl:template>
- <xsl:template match="msgsub">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="msgsub/title">
- <b><xsl:apply-templates/></b>
- </xsl:template>
- <xsl:template match="msgrel">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="msgrel/title">
- <b><xsl:apply-templates/></b>
- </xsl:template>
- <xsl:template match="msgtext">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="msginfo">
- <xsl:call-template name="block.object"/>
- </xsl:template>
- <xsl:template match="msglevel">
- <p>
- <b>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgLevel'"/>
- </xsl:call-template>
- </b>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <xsl:template match="msgorig">
- <p>
- <b>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgOrig'"/>
- </xsl:call-template>
- </b>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <xsl:template match="msgaud">
- <p>
- <b>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgAud'"/>
- </xsl:call-template>
- </b>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <xsl:template match="msgexplan">
- <xsl:call-template name="block.object"/>
- </xsl:template>
- <xsl:template match="msgexplan/title">
- <p><b><xsl:apply-templates/></b></p>
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template match="revhistory">
- <div>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <table border="0" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'RevHistory'"/>
- </xsl:call-template>
- </b>
- </th>
- </tr>
- <xsl:apply-templates/>
- </table>
- </div>
- </xsl:template>
- <xsl:template match="revhistory/revision">
- <xsl:variable name="revnumber" select="revnumber"/>
- <xsl:variable name="revdate" select="date"/>
- <xsl:variable name="revauthor" select="authorinitials|author"/>
- <xsl:variable name="revremark" select="revremark|revdescription"/>
- <tr>
- <td align="left">
- <xsl:if test="$revnumber">
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'Revision'"/>
- </xsl:call-template>
- <xsl:call-template name="gentext.space"/>
- <xsl:apply-templates select="$revnumber"/>
- </xsl:if>
- </td>
- <td align="left">
- <xsl:apply-templates select="$revdate"/>
- </td>
- <xsl:choose>
- <xsl:when test="count($revauthor)=0">
- <td align="left">
- <xsl:call-template name="dingbat">
- <xsl:with-param name="dingbat">nbsp</xsl:with-param>
- </xsl:call-template>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td align="left">
- <xsl:for-each select="$revauthor">
- <xsl:apply-templates select="."/>
- <xsl:if test="position() != last()">
- <xsl:text>, </xsl:text>
- </xsl:if>
- </xsl:for-each>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </tr>
- <xsl:if test="$revremark">
- <tr>
- <td align="left" colspan="3">
- <xsl:apply-templates select="$revremark"/>
- </td>
- </tr>
- </xsl:if>
- </xsl:template>
- <xsl:template match="revision/revnumber">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="revision/date">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="revision/authorinitials">
- <xsl:text>, </xsl:text>
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="revision/authorinitials[1]" priority="2">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="revision/revremark">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="revision/revdescription">
- <xsl:apply-templates/>
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template match="ackno">
- <p>
- <xsl:apply-templates select="." mode="class.attribute"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!-- ==================================================================== -->
- <xsl:template match="highlights">
- <xsl:call-template name="block.object"/>
- </xsl:template>
- <!-- ==================================================================== -->
- </xsl:stylesheet>
|