[xsl] Easy Key-grammar Question

Subject: [xsl] Easy Key-grammar Question
From: "Bob Portnell" <simply.bobp@xxxxxxxxx>
Date: Tue, 26 Sep 2006 11:08:07 -0700
(And yet I don't see it clearly in the FAQ)

So, I've been handed

<xsl:for-each select="//item[@group != 0]">

The structure cries out for a key, and conveniently I already have
established <xsl:key name="ItemByGrp" match="item" use="@group" />

Now, if I wanted the <item>s with @group='0', I'd use the function
key('ItemByGrp', 0). No fuss.

How do I opposite? *Can* I do the opposite, or am I better off leaving
it alone? Should I create a more refined key definition thus?

<xsl:key name="GroupedItems" match="item[@group !=0]" use="@group" />

Curiosity abounds!

Bob Portnell
simply.bobp@xxxxxxxxx

Current Thread