forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r330989 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl
Date Sat, 05 Nov 2005 11:25:28 GMT
Author: rgardler
Date: Sat Nov  5 03:25:22 2005
New Revision: 330989

URL: http://svn.apache.org/viewcvs?rev=330989&view=rev
Log:
handle section, that is defined by a document with no nodeId

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl?rev=330989&r1=330988&r2=330989&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-siteSnippet.xsl
Sat Nov  5 03:25:22 2005
@@ -34,11 +34,22 @@
           <xsl:if test="@nodeId">
             <xsl:attribute name="href"><xsl:value-of select="@nodeId"/>/</xsl:attribute>
           </xsl:if>
-          <doc>
-            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
-            <xsl:attribute name="label">Section Home</xsl:attribute>
-            <xsl:attribute name="href">../<xsl:value-of select="@nodeId"/>.html</xsl:attribute>
-          </doc>
+          <xsl:choose>
+            <xsl:when test="@nodeId">
+              <doc>
+                <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+                <xsl:attribute name="label">Section Home</xsl:attribute>
+                <xsl:attribute name="href">../<xsl:value-of select="@nodeId"/>.html</xsl:attribute>
+              </doc>
+            </xsl:when>
+            <xsl:otherwise>
+              <doc>
+                <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+                <xsl:attribute name="label">Section Home</xsl:attribute>
+                <xsl:attribute name="href"><xsl:value-of select="@id"/>.html</xsl:attribute>
+              </doc>
+            </xsl:otherwise>
+          </xsl:choose>
           <xsl:apply-templates/>
         </group>
       </xsl:when>



Mime
View raw message