mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
added documentation tree git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@458 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
69 lines
1.9 KiB
XML
69 lines
1.9 KiB
XML
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
<!--
|
|
XSL stylesheet for processing documentation for the lcd4linux project
|
|
Copyright 2004 Xavier Vello <xavier66@free.fr>
|
|
Copyright 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
|
|
-->
|
|
|
|
<!--The info node, to generate headers-->
|
|
|
|
<xsl:template match="head" node="doc">
|
|
<xsl:element name="head">
|
|
<xsl:apply-templates select="title"/>
|
|
<xsl:apply-templates select="ref"/>
|
|
<xsl:element name="link">
|
|
<xsl:attribute name="rel">stylesheet</xsl:attribute>
|
|
<xsl:attribute name="href">
|
|
<xsl:copy-of select="$root"/>
|
|
<xsl:text>doc.css</xsl:text>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="type">text/css</xsl:attribute>
|
|
</xsl:element>
|
|
</xsl:element>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="title" node="head">
|
|
<xsl:element name="title">
|
|
<xsl:value-of select="."/>
|
|
</xsl:element>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="ref" node="head">
|
|
</xsl:template>
|
|
|
|
<xsl:template match="history" node="head">
|
|
<table border="1">
|
|
<xsl:for-each select="revision">
|
|
<tr>
|
|
<td><xsl:value-of select="@version"/></td>
|
|
<td><xsl:value-of select="."/></td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</table>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="links" node="head">
|
|
<xsl:element name="div">
|
|
<xsl:attribute name="class">links</xsl:attribute>
|
|
<xsl:element name="div">
|
|
<xsl:attribute name="class">title</xsl:attribute>
|
|
See Also
|
|
</xsl:element>
|
|
|
|
<xsl:apply-templates select="link" mode="head"/>
|
|
|
|
<xsl:element name="div">
|
|
<xsl:attribute name="class">index</xsl:attribute>
|
|
<xsl:element name="a">
|
|
<xsl:attribute name="href">
|
|
<xsl:copy-of select="$root"/>
|
|
<xsl:text>index.html</xsl:text>
|
|
</xsl:attribute>
|
|
<xsl:text>< Index</xsl:text>
|
|
</xsl:element>
|
|
</xsl:element>
|
|
</xsl:element>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|