This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Position of a result tree fragment
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Position of a result tree fragment
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 19 Jul 2001 08:58:06 +0100
- References: <Pine.HPX.4.33.0107181806010.4885-100000@ux1>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> If I am passing a result tree fragment from one template to another using
> a variable, is there any way to determine what the fragment's position
> within its parent was originally?
A result tree fragment isn't part of the original tree it is a
completely new tree with its own root node. If you are trying to
pass a subtree of the source tree then do that (ie use the select
attribute of with-param) then you have access to the source nodes and
can make any query on them, find their parents, count their siblings,
etc.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list