Re: [xsl] XSL Variable not getting set

Subject: Re: [xsl] XSL Variable not getting set
From: Abel Braaksma <>
Date: Wed, 14 Mar 2007 16:29:11 +0100
Michael Kay wrote:
I don't think this is correct:

- your 'current-group' is out of scope in a named template, selecting the
empty sequence always.

current-group() like most other aspects of the XSLT dynamic context is
passed through to a named template. I don't think it's good coding style to
do this, but it's permitted.

Thanks Michael, I hoped someone would either correct me or confirm me. I checked the spec, but I found the sentence "While an xsl:for-each-group instruction is being evaluated, the current group will be non-empty. At other times, it will be an empty sequence." not utterly clear.

-- Abel

Current Thread