cziegeler 02/02/05 23:48:03 Modified: src/java/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl Log: map:select without a map:when is now possible. Reported by Lewis, Andrew J [[EMAIL PROTECTED]] Revision Changes Path 1.8 +6 -1 xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl Index: sitemap.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- sitemap.xsl 4 Feb 2002 02:30:34 -0000 1.7 +++ sitemap.xsl 6 Feb 2002 07:48:03 -0000 1.8 @@ -215,7 +215,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a> * @author <a href="mailto:[EMAIL PROTECTED]">Nicola Ken Barozzi</a> * @author <a href="mailto:[EMAIL PROTECTED]">Peter Royal</a> - * @version CVS $Id: sitemap.xsl,v 1.7 2002/02/04 02:30:34 vgritsenko Exp $ + * @version CVS $Id: sitemap.xsl,v 1.8 2002/02/06 07:48:03 cziegeler Exp $ */ public class <xsl:value-of select="@file-name"/> extends AbstractSitemap { static final String LOCATION = "<xsl:value-of select="translate(@file-path, '/', '.')"/>.<xsl:value-of select="@file-name"/>"; @@ -978,6 +978,11 @@ <xsl:apply-templates/> } </xsl:for-each> + + <!-- if only a map:otherwise is specified --> + <xsl:if test="not(map:when)"> + if (false) {} + </xsl:if> <!-- this is the actual code produced on the otherwise element --> <xsl:for-each select="map:otherwise">
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]