xsl-list
[Top] [All Lists]

How can I get context node in this complex expresion? (current( ) didn't work)

2005-05-04 14:09:41
Hi all...

This is the real case I have:

<xsl:apply-templates 
select="ROW[COB_ID=$cob_rowset[CXC_CAD_ID=key('cad_key_ori', $cob_rowset[COB_ID 
= 2]/CXC_CAD_ID)/CAD_REL_ID]/COB_ID]">

where:
        $cob_rowset : a nodeset that I assign previously. It is correctly 
assigned.
        'cad_key_ori' a key that is correctly defined as well.

That expresion works the way I want (showing some records according to the 
predicate). But that is a particular case. The general case is replacing the 
'2' above for the node COB_ID whose parent is ROW. For instance, I tried:

<xsl:apply-templates 
select="ROW[COB_ID=$cob_rowset[CXC_CAD_ID=key('cad_key_ori', $cob_rowset[COB_ID 
= current()/COB_ID]/CXC_CAD_ID)/CAD_REL_ID]/COB_ID]">

The call to current() didn't work (it didn't show anything and I know that 
'COB_ID=2' is present in ROW nodeset). I think it is because current() is 
pointing to $cob_rowset context node.

Any help would be greatly appreciated.

Thanks
Jaime
        

--~------------------------------------------------------------------
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>