bloritsch    01/04/24 09:16:28

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: xml-cocoon2 sitemap.xsl
  Log:
  allow map:part src attributes to be wildcard expanded.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.102 +3 -3      
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.101
  retrieving revision 1.1.2.102
  diff -u -r1.1.2.101 -r1.1.2.102
  --- sitemap.xsl       2001/04/23 14:38:51     1.1.2.101
  +++ sitemap.xsl       2001/04/24 16:16:26     1.1.2.102
  @@ -98,7 +98,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.101 2001/04/23 14:38:51 dims 
Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.1.2.102 2001/04/24 16:16:26 
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"/>";
  @@ -1008,10 +1008,10 @@
       </xsl:if>
       <xsl:choose>
         <xsl:when test="@ns">
  -        <xsl:value-of select="$ca"/>.addPart("<xsl:value-of 
select="@src"/>", "<xsl:value-of select="@element"/>", "<xsl:value-of 
select="@ns"/>");
  +        <xsl:value-of 
select="$ca"/>.addPart(substitute(listOfMaps,"<xsl:value-of select="@src"/>"), 
"<xsl:value-of select="@element"/>", "<xsl:value-of select="@ns"/>");
         </xsl:when>
         <xsl:otherwise>
  -        <xsl:value-of select="$ca"/>.addPart("<xsl:value-of 
select="@src"/>", "<xsl:value-of select="@element"/>", null);
  +        <xsl:value-of 
select="$ca"/>.addPart(substitute(listOfMaps,"<xsl:value-of select="@src"/>"), 
"<xsl:value-of select="@element"/>", null);
         </xsl:otherwise>
       </xsl:choose>
     </xsl:template> <!-- match="map:aggregate/map:part" -->
  
  
  

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