diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-12-31 12:08:32 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-12-31 12:08:32 +0000 |
commit | 593112940d8ad37bdbd34c3e9b65a8542cc08979 (patch) | |
tree | 5869ac500d12209891f69b4d8390b16aa5a726d6 | |
parent | 8e64fea56bdcee5ade5a1250dedc63bf4ab0cd01 (diff) | |
download | yelp-593112940d8ad37bdbd34c3e9b65a8542cc08979.tar.gz |
- Very basic info stylesheet
* stylesheets/info2html.xsl:
- Very basic info stylesheet
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stylesheets/info2html.xsl | 20 |
2 files changed, 22 insertions, 3 deletions
@@ -1,5 +1,10 @@ 2004-12-31 Shaun McCance <shaunm@gnome.org> + * stylesheets/info2html.xsl: + - Very basic info stylesheet + +2004-12-31 Shaun McCance <shaunm@gnome.org> + * src/yelp-db-pager.c: * src/yelp-pager.h: * src/yelp-window.c: diff --git a/stylesheets/info2html.xsl b/stylesheets/info2html.xsl index a0401d1f..28b49223 100644 --- a/stylesheets/info2html.xsl +++ b/stylesheets/info2html.xsl @@ -29,8 +29,12 @@ <xsl:param name="yelp.color.selected2"/> <xsl:param name="yelp.color.selected3"/> -<xsl:template match="/"> - <yelp:document href="index"> +<xsl:template match="/Info"> + <xsl:apply-templates select="Section"/> +</xsl:template> + +<xsl:template match="Section"> + <yelp:document href="{@id}"> <html> <head> <title> @@ -41,12 +45,22 @@ </style> </head> <body> + <xsl:if test="Documnet"> + <ul> + <xsl:for-each select="Document"> + <li> + <xsl:value-of select="@name"/> + </li> + </xsl:for-each> + </ul> + </xsl:if> <pre class="body"> - <xsl:value-of select="."/> + <xsl:value-of select="node()[not(self::Document)]"/> </pre> </body> </html> </yelp:document> + <xsl:apply-templates select="Section"/> </xsl:template> <xsl:template name="html.css"><xsl:text> |