xsl-list
[Top] [All Lists]

RE: [xsl] Backward Navigation Problem

2009-11-02 05:18:57

looks like
TABLE[(_at_)NAME='XLATTABLE_EMPL_STATUS']/ROWS/ROW/COLUMN[(_at_)NAME='ST
ATUS']" is not working.

Approaches I followed.
1)  
../TABLE[(_at_)NAME='XLATTABLE_EMPL_STATUS']/ROWS/ROW/COLUMN[(_at_)NAME=
'STATUS']"
2)
parent::node()/TABLE[(_at_)NAME='XLATTABLE_EMPL_STATUS']/ROWS/ROW/C
OLUMN[(_at_)NAME='DESCR']


I would write it as a rooted path: /root/TABLE/.....

Your first try doesn't work because TABLE is not a child of the context node
(an employee element).

Your second try doesn't work because TABLE is not a child of the parent of
the context node (an employees element).

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


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