bloritsch    01/05/09 13:14:04

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: xml-cocoon2 sitemap.xsl
  Log:
  Reimplement L.Sutic changes that I had inadvertantly removed.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.113 +28 -1     
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.112
  retrieving revision 1.1.2.113
  diff -u -r1.1.2.112 -r1.1.2.113
  --- sitemap.xsl       2001/05/09 18:33:26     1.1.2.112
  +++ sitemap.xsl       2001/05/09 20:14:00     1.1.2.113
  @@ -99,7 +99,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.1.2.112 2001/05/09 18:33:26 
bloritsch Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.1.2.113 2001/05/09 20:14:00 
bloritsch 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"/>";
  @@ -569,6 +569,32 @@
         </xsl:call-template>
       </xsl:variable>
   
  +    <!-- Modified 20010509 L.Sutic Changed to pass sitemap parameters. -->
  +
  +    <!-- test if we have to define parameters for this action -->
  +    <xsl:if test="count(parameter)>0">
  +      param = new Parameters ();
  +    </xsl:if>
  +
  +    <!-- generate the value used for the parameter argument in the 
invocation of the act method of this action -->
  +    <xsl:variable name="component-param">
  +      <xsl:choose>
  +        <xsl:when test="count(parameter)>0">
  +          param
  +        </xsl:when>
  +        <xsl:otherwise>
  +          emptyParam
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:variable>
  +
  +    <!-- collect the parameters -->
  +    <xsl:apply-templates select="parameter">
  +        <xsl:with-param name="param">param</xsl:with-param>
  +    </xsl:apply-templates>
  +
  +    <!-- modification end -->
  +
       <!-- loop through all the when cases -->
       <xsl:for-each select="./map:when">
   
  @@ -604,6 +630,7 @@
           </xsl:choose>
         </xsl:variable>
   
  +      <!-- Modified 20010509 L.Sutic Changed to pass sitemap parameters. -->
         <!-- gets the string how the selector is to be invoced in java code -->
         <xsl:variable name="selector-name">
           <!-- check if we have a selector definition in this sitemap 
otherwise get it from the parent -->
  
  
  

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