2 <!-- Copyright (C) 2000 Daiki Ueno. -->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 <xsl:output method="xml" encoding="UTF-8"/>
6 <xsl:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
7 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>
9 <xsl:template match="products">
10 <html xmlns="http://www.w3.org/1999/xhtml">
12 <title>SEMI family products</title>
13 <meta content="text/html" http-equiv="Content-Type"/>
14 <link href="default.css" type="text/css" rel="stylesheet" />
15 <meta content="text/css" http-equiv="Content-Style-Type" />
18 <xsl:apply-templates select="product"/>
23 <xsl:template match="product">
24 <h2><xsl:value-of select="@name"/>/<xsl:value-of select="@version"/></h2>
25 <xsl:apply-templates select="variant"/>
28 <xsl:template match="variant">
29 <table border="1" width="99%">
32 <th width="17%">name</th>
33 <td><xsl:value-of select="@name"/></td>
37 <td><xsl:value-of select="@version"/></td>
43 <xsl:when test="maintainer/@href">
44 <a href="{maintainer/@href}"><xsl:value-of select="maintainer"/></a>
47 <xsl:value-of select="maintainer"/>
52 <tr><th>description</th><td><xsl:value-of select="description"/></td></tr>
53 <xsl:apply-templates select="implementation"/>
58 <xsl:template match="implementation">
59 <xsl:apply-templates select="codebase"/>
60 <xsl:apply-templates select="dependency"/>
63 <xsl:template match="codebase">
68 <xsl:when test="@cvsroot">
71 <tr><th>CVSROOT</th><td><xsl:value-of select="@cvsroot"/></td></tr>
72 <tr><th>module</th><td><xsl:value-of select="@module"/></td></tr>
73 <tr><th>tag</th><td><xsl:value-of select="@tag"/></td></tr>
78 <a href="@href"><xsl:value-of select="@href"/></a>
85 <xsl:template name="separate">
86 <xsl:if test="position() < last()">
87 <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
91 <xsl:template match="variant|product" mode="dependency.mode">
92 <xsl:value-of select="@name"/> (<xsl:value-of select="@version"/>)
93 <xsl:call-template name="separate"/>
96 <xsl:template match="dependency">
100 <xsl:apply-templates select="./*" mode="dependency.mode"/>