← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1509: Simplified xpath expression

 

------------------------------------------------------------
revno: 1509
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-02-25 17:37:29 +0100
message:
  Simplified xpath expression
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:58:30 +0000
+++ dhis-2/dhis-options/src/main/resources/helpitems_stylesheet.xsl	2010-02-25 16:37:29 +0000
@@ -3,7 +3,7 @@
 
 <xsl:template match="chapter">
   <h3><xsl:value-of select="title"/></h3>
-  <ul><xsl:apply-templates select="section[@id] | section//section[@id]"/></ul>
+  <ul><xsl:apply-templates select="descendant::section[@id]"/></ul>
 </xsl:template>
 
 <xsl:template match="section">