Author: rgardler
Date: Fri Jan 27 07:49:29 2006
New Revision: 372883
URL: http://svn.apache.org/viewcvs?rev=372883&view=rev
Log:
id attributes are optional on d:group elements, if one is not present we need
to avoid adding a '/' prefix
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
URL:
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl?rev=372883&r1=372882&r2=372883&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
Fri Jan 27 07:49:29 2006
@@ -91,7 +91,7 @@
<xsl:choose>
<xsl:when test="@nodeId"><xsl:value-of select="@nodeId"/>/</xsl:when>
<xsl:otherwise>
- <xsl:if test="name()='d:group'"><xsl:value-of
select="@id"/>/</xsl:if>
+ <xsl:if test="name()='d:group' and @id"><xsl:value-of
select="@id"/>/</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>