Subject: Re: [xsl] Position of a result tree fragment From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 19 Jul 2001 08:58:06 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Position of a result tree, Michael Kay | Thread | [xsl] Shorthand for XPath expressio, William Bagby |
Re: [xsl] How do I count nodes?, David Carlisle | Date | Re: [xsl] More Multi-Document Mambo, David Carlisle |
Month |