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" group-by="@gl"> <xsl:for-each-group select="current-group()" group-by="@fiscalyear"> <!--- Do stuff -----> <xsl:call-template name="monthly"> <xsl:with-param name="mon">1</xsl:with-param> </xsl:call-template> <!--- Do stuff -----> </xsl:for-each-group> </xsl:for-each-group> </xsl:template> --- 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. http://tools.search.yahoo.com/shortcuts/#loc_weather
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL Variable not getting , David Carlisle | Thread | Re: [xsl] XSL Variable not getting , Abel Braaksma |
Re: [xsl] XSL Variable not getting , George Cristian Bina | Date | Re: [xsl] XSL Variable not getting , Abel Braaksma |
Month |