[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: variables, grouping, and result-documents

Subject: Re: variables, grouping, and result-documents
From: Eliot Kimber <ekimber@xxxxxxxxxxxx>
Date: Tue, 18 Dec 2007 15:42:55 -0600
Re:  variables
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.