dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04497
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1507: Improved help items
------------------------------------------------------------
revno: 1507
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-02-25 16:58:30 +0100
message:
Improved help items
modified:
dhis-2/dhis-options/src/main/resources/helpitems_stylesheet.xsl
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-options/src/main/resources/helpitems_stylesheet.xsl'
--- dhis-2/dhis-options/src/main/resources/helpitems_stylesheet.xsl 2010-02-25 15:43:36 +0000
+++ dhis-2/dhis-options/src/main/resources/helpitems_stylesheet.xsl 2010-02-25 15:58:30 +0000
@@ -1,14 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="chapter">
+ <h3><xsl:value-of select="title"/></h3>
+ <ul><xsl:apply-templates select="section[@id] | section//section[@id]"/></ul>
+</xsl:template>
+
<xsl:template match="section">
- <li><a href="javascript:getHelpContent('{@id}')"><xsl:value-of select="title"/></a></li>
+ <li><a href="getHelpContent('{@id}')"><xsl:value-of select="title"/></a></li>
</xsl:template>
<xsl:template match="/">
-<ul>
- <xsl:apply-templates select="book/chapter//section[@id]"/>
-</ul>
+ <xsl:apply-templates select="book/chapter"/>
</xsl:template>
</xsl:stylesheet>