giacomo     01/05/23 08:02:01

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        sitemap.xsl
  Log:
  Patch to make map:parameter available inside map:resource
  Submitted by: Peter Royal <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.9       +2 -2      
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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- sitemap.xsl       2001/05/22 16:20:47     1.8
  +++ sitemap.xsl       2001/05/23 15:01:55     1.9
  @@ -99,7 +99,7 @@
        *
        * @author &lt;a href="mailto:[EMAIL PROTECTED]"&gt;Giacomo 
Pati&lt;/a&gt;
        * @author &lt;a href="mailto:[EMAIL PROTECTED]"&gt;Berin 
Loritsch&lt;/a&gt;
  -     * @version CVS $Id: sitemap.xsl,v 1.8 2001/05/22 16:20:47 sylvain Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.9 2001/05/23 15:01:55 giacomo 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"/>";
  @@ -1086,7 +1086,7 @@
     </xsl:template> <!-- match="map:part" -->
   
     <!-- collect parameter definitions -->
  -  <xsl:template match="map:pipeline//map:parameter | 
map:action-set//map:parameter">
  +  <xsl:template match="map:pipeline//map:parameter | 
map:action-set//map:parameter | map:resource//map:parameter">
       <xsl:param name="param"/>
       <xsl:if test="not($param='')">
         <xsl:value-of select="$param"/>.setParameter ("<xsl:value-of 
select="@name"/>", substitute(listOfMaps, "<xsl:value-of select="@value"/>"));
  
  
  

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