This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Position of a result tree fragment



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]