xsl-list
[Top] [All Lists]

Re: [xsl] get the parent of the node returned by current() funcion.

2006-05-14 02:59:31
Hi,

Use current()/parent::node()

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Jagsmiles wrote:
xsl has current() function which returns the current node.

does it has something like parent() which returns the parent of the
node returned by current() funcion.

I have to use within a select expression of <xsl:sort> element.,
I have to get the information of current()' parent within the context
of other node.
i tried using .. , parent::* , but they are behaving with reference to
the other node, and not with reference to the node returned by
current() node.


Thanks,
Jagsmiles.

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


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