Subject: Re: [xsl] how to test previous node name From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 12 Feb 2007 11:16:21 +0100 |
select="parent::test1 or preceding::*[1][self::test1]"
(It could well be that you don't want to check the whole preceding axis, just the preceding-sibling axis - its worth figuring that out now based on the examples I've given.)
<test1> <test2> <item /> ....
<test1> <test2> <test1 /> <text /> <item /> ...
<testX> <test1> <item /> <test1 /> <text /> <item /> <item />
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to test previous node, Andrew Welch | Thread | Re: [xsl] how to test previous node, Florent Georges |
Re: [xsl] Optimisation -- premature, Andrew Welch | Date | Re: [xsl] Beginner seeking advice, Trine Løcke |
Month |