diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-06-02 05:28:06 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-06-02 05:28:06 +0000 |
commit | 21d19e4dbe9a3a1f724a1963d13af21004a06e55 (patch) | |
tree | 8333b427632f129e005ca6f7d4796c18ffddccb6 /documentation/xsl/head.xsl | |
parent | 491dc3d0e3ff77223118aac4712bf9ed2dac63a8 (diff) | |
download | lcd4linux-21d19e4dbe9a3a1f724a1963d13af21004a06e55.tar.gz |
[lcd4linux @ 2004-06-02 05:27:59 by reinelt]
added documentation tree
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@458 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | documentation/xsl/head.xsl | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/documentation/xsl/head.xsl b/documentation/xsl/head.xsl new file mode 100644 index 0000000..7d975dd --- /dev/null +++ b/documentation/xsl/head.xsl @@ -0,0 +1,68 @@ +<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> |