[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Easy Key-grammar Question

Subject: Easy Key-grammar Question
From: "Bob Portnell" <simply.bobp@xxxxxxxxx>
Date: Tue, 26 Sep 2006 11:08:07 -0700
 Easy Key-grammar Question
(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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.