vgritsenko    01/09/08 09:30:58

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: cocoon_20_branch sitemap.xsl
  Log:
  Patch from Jeorn Heid for selector inside resource
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.31 +3 -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.11.2.30
  retrieving revision 1.11.2.31
  diff -u -r1.11.2.30 -r1.11.2.31
  --- sitemap.xsl       2001/09/08 03:32:40     1.11.2.30
  +++ sitemap.xsl       2001/09/08 16:30:57     1.11.2.31
  @@ -124,7 +124,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.11.2.30 2001/09/08 03:32:40 vgritsenko Exp 
$
  +     * @version CVS $Id: sitemap.xsl,v 1.11.2.31 2001/09/08 16:30:57 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"/>";
  @@ -181,7 +181,8 @@
             private boolean <xsl:value-of select="$type"/>Select (<xsl:value-of 
select="XSLTFactoryLoader:getParameterSource($factory-loader, string($src),$config)"/> 
pattern, Map objectModel, Parameters param) {
               <xsl:value-of 
select="XSLTFactoryLoader:getMethodSource($factory-loader, string($src),$config)"/>
             }
  -          <xsl:for-each 
select="/map:sitemap/map:pipelines/map:pipeline/descendant::map:select[@type=$name or 
(not(@type) and $default)]/map:when">
  +          <xsl:for-each 
select="/map:sitemap/map:pipelines/map:pipeline/descendant::map:select[@type=$name or 
(not(@type) and $default)]/map:when
  +              | 
/map:sitemap/map:resources/map:resource/descendant::map:select[@type=$name or 
(not(@type) and $default)]/map:when">
               <xsl:call-template name="line-number"/>
               <xsl:variable name="selector-name">
                 <xsl:call-template name="generate-name">
  
  
  

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