Subject: Re: [xsl] Getting previous node in nodeset From: Michael Kay <mike@xxxxxxxxxxxx> Date: Fri, 22 Apr 2011 10:21:21 +0100 |
On 22/04/2011 02:28, Steve Fogel wrote:Hi, all...
Would appreciate a suggestion:
If:
- I have a node set in the variable $nodelist - and I have a single node in the variable $mynode - and the node in $mynode is a member of $nodelist
then in XSLT 2.0, how do I set a variable to contain the node that is previous to $mynode in $nodelist?
For simplicity and a quick answer, you can assume that all nodes in $nodelist are siblings, but in reality, $nodelist contains<topicref>s from a DITA map, so the previous node could be a sibling, a parent, or the child of the previous sibling.
Many thanks
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting previous node in , David Carlisle | Thread | Re: [xsl] Getting previous node in , Oliver Hallam |
Re: [xsl] Getting previous node in , David Carlisle | Date | Re: [xsl] Getting previous node in , Oliver Hallam |
Month |