Gibble

msg:3936100 | 4:30 pm on Jun 18, 2009 (gmt 0) |
Got it, I think <xsl:apply-templates select="node()[substring-after(name(),'F') < 9 and substring-after(name(),'F') > 2 and .!= '']" /> <xsl:template match="node()[substring-after(name(),'F') < 9 and substring-after(name(),'F') > 2]"> <xsl:if test="position() = last()"> <xsl:value-of select="."/> </xsl:if> </xsl:template>
|
Gibble

msg:3936101 | 4:30 pm on Jun 18, 2009 (gmt 0) |
should change that to a call-template probably and use a name
|
httpwebwitch

msg:3936106 | 4:33 pm on Jun 18, 2009 (gmt 0) |
you've got it. position() and last() do the trick nice one Gibble
|
Gibble

msg:3936140 | 5:17 pm on Jun 18, 2009 (gmt 0) |
I presume the template was needed to create a "set", but is there a way to have written it without it?
|
httpwebwitch

msg:3936380 | 11:43 pm on Jun 18, 2009 (gmt 0) |
I suppose you could use the same XPATH in an <xsl:for-each>. Have you tried combining the "node()[substring-after(name(),'F' ..." part with the position() and last() comparison? Maybe you could do the whole thing in one complex expression.
|
|