You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/11/05 12:25:28 UTC

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

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>