[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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) >= 6]/td[1] | ancestor-or-self::tr/preceding-sibling::tr[count(td) >= 6][position() = count(.)]/td[1])[last()]" /> http://www.tecnotertulia.com/?p=330 Sincerely, Ted Stresen-Reuter
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|