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

Re: Relationships in for-each statement

Subject: Re: Relationships in for-each statement
From: "Bob Portnell" <simply.bobp@xxxxxxxxx>
Date: Fri, 8 Sep 2006 08:44:48 -0700
Re:  Relationships in for-each statement
Good morning! (or afternoon, I guess, in the UK).

On 9/7/06, David Carlisle <davidc@xxxxxxxxx> wrote:

> . How would I implement keys to clean up and speed up this expression?


the expression is of the form //something[path/to/@attribute=expression]
which is exactly (more or less:-) the meaning of
key('k',expression)
if you first go
<xsl:key name="k" match="something" use="path/to/@attribute"/>

Well, trying this, I find a problem in that my expression


<xsl:for-each select="//program[tv:title = $matcher]/@id">

isn't really in that form. I suspect, short of actually throwing the
entire sheet in here for inspection, that I've hit the end of the road
for this one.

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.