Index: sitemap.xsl
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
retrieving revision 1.11.2.35
diff -u -r1.11.2.35 sitemap.xsl
--- sitemap.xsl	2001/10/17 10:05:53	1.11.2.35
+++ sitemap.xsl	2001/10/25 10:27:16
@@ -797,7 +797,8 @@
   <!-- a select element introduces a multi branch case by calls to a select method on a selector component (or a inlined
        selector method produced by a CodeFactory -->
   <xsl:template match="map:select">
-
+		<!-- this is used by the contentAggregation -->
+		<xsl:param name="ca"/>
     <!-- get the type of selector used -->
     <xsl:variable name="selector-type">
       <xsl:call-template name="get-parameter">
@@ -884,9 +885,12 @@
       <xsl:if test="position() > 1">
         else
       </xsl:if>
+			
       if (<xsl:value-of select="$selector-name"/>) {
         getLogger().debug("Select <xsl:value-of select="$selector-type"/>");
-        <xsl:apply-templates/>
+        <xsl:apply-templates>
+				<xsl:with-param name="ca"><xsl:value-of select="$ca"/></xsl:with-param>
+				</xsl:apply-templates>
       }
     </xsl:for-each>
 
@@ -895,7 +899,9 @@
       <xsl:call-template name="line-number"/>
       else {
         getLogger().debug("Select Otherwise");
-      <xsl:apply-templates/>
+      <xsl:apply-templates>
+				<xsl:with-param name="ca"><xsl:value-of select="$ca"/></xsl:with-param>
+			</xsl:apply-templates>
       }
     </xsl:for-each>
   </xsl:template> <!-- match="map:select" -->
@@ -1301,6 +1307,9 @@
       </xsl:call-template>
     </xsl:if>
     <xsl:value-of select="$ca"/>.setRootElement("<xsl:value-of select="@element"/>", "<xsl:value-of select="@ns"/>", "<xsl:value-of select="@prefix"/>");
+		<xsl:apply-templates select="./map:select">
+			<xsl:with-param name="ca"><xsl:value-of select="$ca"/></xsl:with-param>
+		</xsl:apply-templates>
     <xsl:apply-templates select="./map:part">
       <xsl:with-param name="ca"><xsl:value-of select="$ca"/></xsl:with-param>
     </xsl:apply-templates>
