xsl-list
[Top] [All Lists]

RE: Key error: the context item is undefined

2005-12-12 13:57:22
Michael Kay wrote:

I imagine you want to search within the document
that contains the $obj node.

  You're right.

In this case you can write

<xsl:value-of select="foo:do.it(key('by.id', $obj/@idref,
$obj/root()))"/>

or if you prefer,

<xsl:value-of select="foo:do.it($obj/key('by.id', @idref))"/>

  Thanks.  It's actually what I looked for. (I'm pretty sure I tried
this.  I suspect a missing dependency in my Makefile...)

  Regards,

--drkm





















        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>