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

Re: How to properly use Key elements

Subject: Re: How to properly use Key elements
From: "G. T. Stresen-Reuter" <tedmasterweb@xxxxxxxxx>
Date: Mon, 21 Oct 2013 23:44:31 +0100
Re:  How to properly use Key elements
Thanks again to everyone who helped me get my head around this problem. I've
posted my conclusions on my blog (rather than gumming up the list more than I
already have).

In retrospect I may not have presented the problem as clearly as I could have
and hope that the blog post clarifies what the problem was. The good news is
THE PROBLEM WAS SOLVED and I thank all of you for your help. This is one of
the best lists I've ever been on and I hope my grain of sand helps someone in
my situation down the road.

Here's the final key element I ended up with:

<xsl:key
    name="ports-by-ship"
    match="tr"
    use="(ancestor-or-self::tr[count(td) &gt;= 6]/td[1]
        | ancestor-or-self::tr/preceding-sibling::tr[count(td) &gt;=
6][position() = count(.)]/td[1])[last()]"
/>

http://www.tecnotertulia.com/?p=330

Sincerely,

Ted Stresen-Reuter

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.