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 Fri, 22 Jun 2001 02:54:26 GMT
vgritsenko    01/06/21 19:54:26

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: cocoon_20_branch sitemap.xsl
  Log:
  - initialize selectors
  - add <xsl:otherwise> where was absent
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.12 +18 -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.11.2.11
  retrieving revision 1.11.2.12
  diff -u -r1.11.2.11 -r1.11.2.12
  --- sitemap.xsl	2001/06/21 11:19:54	1.11.2.11
  +++ sitemap.xsl	2001/06/22 02:54:24	1.11.2.12
  @@ -44,6 +44,7 @@
       <xsl:choose>
         <xsl:when test="contains(system-property('xsl:vendor-url'), 'xalan')">xalan</xsl:when>
         <xsl:when test="contains(system-property('xsl:vendor-url'), 'saxon')">saxon</xsl:when>
  +      <xsl:otherwise>unknown</xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
   
  @@ -127,7 +128,7 @@
        *
        * @author &lt;a href="mailto:giacomo@apache.org"&gt;Giacomo Pati&lt;/a&gt;
        * @author &lt;a href="mailto:bloritsch@apache.org"&gt;Berin Loritsch&lt;/a&gt;
  -     * @version CVS $Id: sitemap.xsl,v 1.11.2.11 2001/06/21 11:19:54 dims Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.11.2.12 2001/06/22 02:54:24 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"/>";
  @@ -223,6 +224,14 @@
             configurer.configActions();
             configurer = null;
   
  +          this.generators.initialize();
  +          this.transformers.initialize();
  +          this.serializers.initialize();
  +          this.readers.initialize();
  +          this.actions.initialize();
  +          this.matchers.initialize();
  +          this.selectors.initialize();
  +
             this.manager.initialize();
           /* catch any exception thrown by a component during configuration */
           } catch (Exception e) {
  @@ -417,9 +426,9 @@
             throw e;
           } finally {
             if(eventPipeline != null)
  -            manager.release(eventPipeline);
  +            this.manager.release(eventPipeline);
             if(pipeline != null)
  -            manager.release(pipeline);
  +            this.manager.release(pipeline);
           }
           return result;
         }
  @@ -1188,11 +1197,16 @@
               <xsl:when test="@session='no'">false</xsl:when>
               <xsl:when test="@session='false'">false</xsl:when>
               <xsl:when test="not(@session)">false</xsl:when>
  +            <xsl:otherwise>
  +              <xsl:call-template name="error">
  +                <xsl:with-param name="message">Invalid value of session= attribute
of redirect-to element</xsl:with-param>
  +              </xsl:call-template>
  +            </xsl:otherwise>
             </xsl:choose>
           </xsl:variable>
           getLogger().debug("Sitemap: session='<xsl:value-of select="$sess"/>', redirecting
to '<xsl:value-of select="@uri"/>'");
           environment.redirect (<xsl:value-of select="$sess"/>, substitute(listOfMaps,
"<xsl:value-of select="@uri"/>"));
  -        if(true)return true;
  +        if (true) return true;
         </xsl:when>
   
         <!-- any other combination generates an error message -->
  
  
  

----------------------------------------------------------------------
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