cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl
Date Thu, 13 Dec 2001 17:12:50 GMT
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:giacomo@apache.org">Giacomo Pati</a>
        * @author <a href="mailto:bloritsch@apache.org">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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message