xsl-list
[Top] [All Lists]

Re: [xsl] variables, grouping, and result-documents

2007-12-18 14:43:36
Terry Ofner wrote:

It seems that I have this variable line in the wrong place:

<xsl:variable name="stateName" select="current-group()/@state"/>

Am I trying to do too much inside this one template?
Do I need two templates?

I know this one: you want:

<xsl:variable name="stateName" select="current-group()[1]/@state"/>

current-group() is the sequence of all the members of the group, so you're getting the join of all the @state values of all the members.

Cheers,

E.

--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--