Re: [xsl] XSL Variable not getting set

Subject: Re: [xsl] XSL Variable not getting set
From: mIchael wolff <wolffmart@xxxxxxxxx>
Date: Wed, 14 Mar 2007 07:07:48 -0700 (PDT)
Here is where i am calling it from:

<xsl:template match="niku:QueryResult/niku:Records">
		<xsl:for-each-group select="niku:Record"
			<xsl:for-each-group select="current-group()"

<!--- Do stuff ----->

<xsl:call-template name="monthly">
					<xsl:with-param name="mon">1</xsl:with-param>

<!--- Do stuff ----->


--- David Carlisle <davidc@xxxxxxxxx> wrote:

> > I have changed my if to:
> > <xsl:if test="$Found = ''">
> so that's changed your template from not using the
> variable to using it.
> > and still no luck.
> You need to show more code, probably. You are
> calling current-group()
> but don't show any use of for-each-group, (if there
> is none,
> current-group() will be empty, so $Found will always
> be the empty string
> and not($found) will always be true. If this named
> template is being
> called from inside a for-each-group, it depends on
> how its called...
> David

Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.

Current Thread