Author: rgardler
Date: Sat Oct 29 11:04:18 2005
New Revision: 329460

URL: http://svn.apache.org/viewcvs?rev=329460&view=rev
Log:
handle documnet nodes that have only links as children

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=329460&r1=329459&r2=329460&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 Oct 29 11:04:18 2005
@@ -42,6 +42,16 @@
           <xsl:apply-templates/>
         </group>
       </xsl:when>
+      <xsl:when test="d:link">
+        <group>
+          <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+          <xsl:attribute name="label"><xsl:value-of 
select="@label"/></xsl:attribute>
+          <xsl:if test="@nodeId">
+            <xsl:attribute name="href"><xsl:value-of 
select="@nodeId"/>/</xsl:attribute>
+          </xsl:if>
+          <xsl:apply-templates/>
+        </group>
+      </xsl:when>
       <xsl:otherwise>
         <doc>
           <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>


Reply via email to