W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2007

Getting the original context node while inside predicate

From: David Sisson <dsisson@yahoo-inc.com>
Date: Fri, 23 Mar 2007 14:49:30 -0700
Message-Id: <D40742DA-B7C2-495B-8C3C-0B7F3B4334BE@yahoo-inc.com>
To: public-qt-comments@w3.org

get at the original context item while inside a predicate.  Should  
there be an axis that allows you to go up the previous context items?

  	The typical use case for this is where you join two sets of nodes  
together based on a key.

<xsl:variable name="key"><xsl:value-of select="key"></xsl:variable>
<xsl:value-of "//otheritems[@key=$key]" />


	Besides cleaning up the above syntax it would make it possible to  
use in conjunction with <xsl:sort> (since you can't take a timeout to  
declare an <xsl:variable> before an <xsl:sort> at least in XSLT 1.0).
Received on Sunday, 25 March 2007 00:17:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:19 GMT