vgritsenko    01/12/13 09:12:50

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        sitemap.xsl
  Log:
  fix label checks (contains_view was erroneously called with empty label list)
  
  Revision  Changes    Path
  1.55      +4 -4      
xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
  
  Index: sitemap.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- sitemap.xsl       2001/12/10 12:56:22     1.54
  +++ sitemap.xsl       2001/12/13 17:12:49     1.55
  @@ -126,7 +126,7 @@
        *
        * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
        * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
  -     * @version CVS $Id: sitemap.xsl,v 1.54 2001/12/10 12:56:22 sylvain Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.55 2001/12/13 17:12:49 vgritsenko 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"/>";
  @@ -1527,7 +1527,7 @@
       }
   
       <!-- process attached labels to the map:aggregate element -->
  -    <xsl:if test="(@label)">
  +    <xsl:if test="@label">
         <xsl:call-template name="view-label">
           <xsl:with-param name="label"><xsl:value-of 
select="@label"/></xsl:with-param>
         </xsl:call-template>
  @@ -1783,7 +1783,7 @@
           </xsl:for-each>
         </xsl:if>
   
  -      <xsl:if test="(@label)">
  +      <xsl:if test="@label">
           <xsl:call-template name="view-label">
             <xsl:with-param name="label"><xsl:value-of 
select="@label"/></xsl:with-param>
           </xsl:call-template>
  @@ -1797,7 +1797,7 @@
             <xsl:value-of 
select="/map:sitemap/map:components/map:transformers/map:transformer[@name=$component-type]/@label"/>
           </xsl:if>
         </xsl:variable>
  -      <xsl:if test="$component-label">
  +      <xsl:if test="string-length($component-label) &gt; 0">
           <xsl:call-template name="view-label">
             <xsl:with-param name="label"><xsl:value-of 
select="$component-label"/></xsl:with-param>
           </xsl:call-template>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to