|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: variables, grouping, and result-documents
Terry Ofner wrote:
Not in the wrong place. As long as it's in scope it is fine. But what you want is not all @state attributes in the current group's root (i.e., all <State_Standard..> elements), but only one. You can do that with current-grouping-key() or if you need another attribute: current-group()[1]/@state
That depends on how you look at it. The processor doesn't care of course. Personally I think you should split it up and use apply-templates a bit more. But with grouping that can get a bit tricky. Do I need two templates? "need" is in the eye of the beholder... it doesn't really matter here if don't mind big code chunks ;) HTH, Cheers, -- Abel Braaksma PS: there's some other place where you do about the same trick, you apparently need current-group()[1] there too.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








