CSTUG

Stylesheet

<xsl:stylesheet version="2.0" exclude-result-prefixes="c">

<!-- This stylesheet transforms the list of keywords into an HTML table. -->
<xsl:import href="acro.xsl"/> <xsl:import href="xmlink2.xsl"/> <xsl:strip-space elements="*"/> <xsl:preserve-space elements="c:text c:TeX c:html"/> <xsl:output method="html"/> <xsl:variable name="acromode">html</xsl:variable> <xsl:variable name="index" select="document(/descendant::node()/@indexhref)/c:index"/> <xsl:variable name="acronymlist" select="document(concat($index/@base,$index/@acronyms))"/> <xsl:template match="c:keywordList"> <html> <head> <title>List of Keywords</title> </head> <body background="back_narrow.gif" bgcolor="#ffffff" text="#000000" alink="#c14242" vlink="#d30000" link="#900000"> <table border="0" width="100%"> <tr valign="top"> <td width="30"> </td> <td> <a href="http://bulletin.cstug.cz/xml/"> <img src="logo.gif" border="0" height="51" width="165" alt="CSTUG" align="right"/> </a> <h1>List of Keywords Sorted by Id, last modified <xsl:value-of select="/c:keywordList/@lastModified"/></h1> <table frame="box" rules="all" border="3" cellpadding="3"> <tr> <th>Id</th> <th>Czech</th> <th>English</th> </tr> <xsl:for-each select="c:keyword"> <xsl:sort select="@id"/> <xsl:call-template name="keyword"/> </xsl:for-each> </table> <p><xsl:call-template name="xmlink"/></p> <p><a title="Index" href="{concat(@indexhref, $add-ext)}">Index</a></p> </td></tr></table> </body> </html> </xsl:template> <xsl:template name="keyword"> <tr valign="middle"> <td><xsl:value-of select="@id"/></td> <td><xsl:apply-templates select="c:cze|c:ALL" mode="html"/></td> <td><xsl:apply-templates select="c:eng|c:ALL" mode="html"/></td> </tr> </xsl:template> <xsl:template match="c:cze|c:eng" mode="html"> <xsl:apply-templates mode="html"/> </xsl:template> </xsl:stylesheet>

keywords2.xsl