View Single Post
 
Old September 8th, 2007, 02:57 PM
bonekrusher bonekrusher is offline
Friend of Wrox
Points: 1,676, Level: 16
Points: 1,676, Level: 16 Points: 1,676, Level: 16 Points: 1,676, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2006
Location: , , .
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default Value of parent element of current-grouping-key()

Hi,

Is it possible to get the attribute value of a parent of a current-grouping-key()?

for example, I have this Xpath expression:
Code:
<xsl:for-each-group group-by="." select="for $w in tokenize(string(.), '\W+') return lower-case($w)">
<xsl:sort select="count(current-group())" order="descending"/>
.......
I want the value of the ../@id

How can I do this?