← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1487: Improved xslt as per Bob's suggestions

 

------------------------------------------------------------
revno: 1487
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Wed 2010-02-24 16:23:16 +0100
message:
  Improved xslt as per Bob's suggestions
modified:
  dhis-2/dhis-options/src/main/resources/help_content.xml
  dhis-2/dhis-options/src/main/resources/help_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/help_content.xml'
--- dhis-2/dhis-options/src/main/resources/help_content.xml	2010-02-24 11:14:58 +0000
+++ dhis-2/dhis-options/src/main/resources/help_content.xml	2010-02-24 15:23:16 +0000
@@ -1,5 +1,4 @@
 <?xml version='1.0' encoding='UTF-8'?>
-<?xml-stylesheet type="text/xsl" href="find.xsl"?>
 <book>
   <chapter>
     <title>Data Administration in DHIS 2</title>

=== modified file 'dhis-2/dhis-options/src/main/resources/help_stylesheet.xsl'
--- dhis-2/dhis-options/src/main/resources/help_stylesheet.xsl	2010-02-24 11:14:58 +0000
+++ dhis-2/dhis-options/src/main/resources/help_stylesheet.xsl	2010-02-24 15:23:16 +0000
@@ -1,35 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 
-<xsl:param name="sectionId">dataBrowser</xsl:param>
+<xsl:param name="sectionId">resourceTables</xsl:param>
 
 <xsl:template match="section">
   <h3><xsl:value-of select="title"/></h3>
   <xsl:apply-templates select="para|orderedlist|itemizedlist"/>
- </xsl:template>
+</xsl:template>
 
 <xsl:template match="para">
   <p><xsl:value-of select="."/></p>
 </xsl:template>
 
 <xsl:template match="orderedlist">
-  <ol>
-  <xsl:for-each select="listitem">
-    <li><xsl:value-of select="para"/></li>
-  </xsl:for-each>
-  </ol>
+  <ol><xsl:apply-templates/></ol>
 </xsl:template>
 
 <xsl:template match="itemizedlist">
-  <ul>
-  <xsl:for-each select="listitem">
-    <li><xsl:value-of select="para"/></li>
-  </xsl:for-each>
-  </ul>
+  <ul><xsl:apply-templates/></ul>
 </xsl:template>
 
+<xsl:template match="listitem">
+  <li><xsl:apply-templates select="para|orderedlist|itemizedlist"/></li>
+</xsl:template>
+ 
 <xsl:template match="/">
   <xsl:apply-templates select="book/chapter/section[@id=$sectionId]"/>
 </xsl:template>
 
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file