diff options
Diffstat (limited to 'data/starthere/section.xsl')
-rw-r--r-- | data/starthere/section.xsl | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/data/starthere/section.xsl b/data/starthere/section.xsl index 6b349c626..62bdcf598 100644 --- a/data/starthere/section.xsl +++ b/data/starthere/section.xsl @@ -3,15 +3,14 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<!-- root rule --> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> -<!-- main rule for document element --> <xsl:template match="section"> <html> <head> + <link rel="stylesheet" href="section.css" type="text/css"/> </head> <body> <xsl:apply-templates/> @@ -19,5 +18,47 @@ </html> </xsl:template> +<xsl:template match="content"> +<div class="body"> + <xsl:apply-templates/> +</div> +</xsl:template> + +<xsl:template match="bar"> +<div class="topbar"> + <xsl:apply-templates/> +</div> +</xsl:template> + +<xsl:template match="item"> +<a href="{@section}"> + <xsl:apply-templates/> +</a> +</xsl:template> + +<xsl:template match="title"> +<h2> + <xsl:apply-templates/> +</h2> +</xsl:template> + +<xsl:template match="paragraph"> +<p> + <xsl:apply-templates/> +</p> +</xsl:template> + +<xsl:template match="buildcontent"> +<p> + <xsl:apply-templates/> +</p> +</xsl:template> + +<xsl:template match="action"> +<a href="action:{@id}?{@param}"> + <xsl:apply-templates/> +</a> +</xsl:template> + </xsl:stylesheet> |