S
Steffen Beyer
Hi,
following situation:
<xsl:variable name="newsarticles">
<xsl:call-template name="find_current_newsarticles"/>
</xsl:variable>
<!--
$newsarticles now contains something like
<... </<... </-->
<xsl:if test="$newsarticles">
<p>News</p>
<xsl:for-each select="$newsarticles">
<p>Article</p>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:if>
The body of the if-clause gets executed but the for-each doesn't loop at
all. I'm really stuck - what XPath expression do I need to use here?
BTW, this is of course not for-each specific. <apply-templates
select="$newsarticles"/> does not work either.
Regards,
following situation:
<xsl:variable name="newsarticles">
<xsl:call-template name="find_current_newsarticles"/>
</xsl:variable>
<!--
$newsarticles now contains something like
<... </<... </-->
<xsl:if test="$newsarticles">
<p>News</p>
<xsl:for-each select="$newsarticles">
<p>Article</p>
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:if>
The body of the if-clause gets executed but the for-each doesn't loop at
all. I'm really stuck - what XPath expression do I need to use here?
BTW, this is of course not for-each specific. <apply-templates
select="$newsarticles"/> does not work either.
Regards,