giacomo 00/09/04 11:54:21
Modified: src/org/apache/cocoon/components/language/markup/sitemap/java
Tag: xml-cocoon2 sitemap.xsl
Log:
Fixed sitemap stylesheet to handle component labels correctly
Revision Changes Path
No revision
No revision
1.1.2.30 +5 -8
xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl
Index: sitemap.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v
retrieving revision 1.1.2.29
retrieving revision 1.1.2.30
diff -u -r1.1.2.29 -r1.1.2.30
--- sitemap.xsl 2000/09/02 21:12:34 1.1.2.29
+++ sitemap.xsl 2000/09/04 18:54:20 1.1.2.30
@@ -11,7 +11,7 @@
<!--
* @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
- * @version CVS $Revision: 1.1.2.29 $ $Date: 2000/09/02 21:12:34 $
+ * @version CVS $Revision: 1.1.2.30 $ $Date: 2000/09/04 18:54:20 $
-->
<!-- Sitemap Core logicsheet for the Java language -->
@@ -722,14 +722,11 @@
</xsl:if>
</xsl:variable>
<xsl:if test="$component-label">
- <xsl:variable name="component-view">
- <xsl:value-of select="/map:sitemap/map:views/map:[EMAIL
PROTECTED]/@name"/>
- </xsl:variable>
- <xsl:if test="/map:sitemap/map:views/map:[EMAIL PROTECTED]">
- if ("<xsl:value-of select="$component-view"/>".equals(cocoon_view)) {
- return view_<xsl:value-of select="translate($component-view, '- ',
'__')"/> (pipeline, listOfLists, environment);
+ <xsl:for-each select="/map:sitemap/map:views/map:[EMAIL PROTECTED]">
+ if ("<xsl:value-of select="@name"/>".equals(cocoon_view)) {
+ return view_<xsl:value-of select="translate(@name, '- ', '__')"/>
(pipeline, listOfLists, environment);
}
- </xsl:if>
+ </xsl:for-each>
</xsl:if>
</xsl:template>