[Home] [By Thread] [By Date] [Recent Entries]
On 24/11/2012 05:54, Ihe Onwuka wrote:
1. <xsl:apply-templates select="current-group() except blah"/> well current-group() except blah selects all nodes in the current group except blah nodes that are children of the current node. so it won't apply templates to "blah" if blah is interpreted as a relative xpath from the current node. If you mean don't select elements in the current group that match blah then current-group()[not(self::blah)] is probably as clear as any of the alternatives.
group-by takes an expression rather than a pattern (starting-with and ending-with take patterns) the sorting key will be the empty string in that case and should be usable just as any other string.
If using starting-with you pretty much always end up testing if . matches the starting pattern and if so you are in the "bit before the first section" David -- google plus: https:/profiles.google.com/d.p.carlisle
|

Cart



