[xsl] determine existence of preceding element

Subject: [xsl] determine existence of preceding element
From: "Matthew L. Avizinis" <mla@xxxxxxxxx>
Date: Fri, 29 Oct 2004 09:31:30 -0400
Hello and boo to all,
I'm not seeing the solution at the moment.
possible scenario (there could be any number of each of the following elements):
1 <text:p text:style-name="module-title">
2 <text:p text:style-name="sub-module-title">
3 <text:p>
4 <text:p text:style-name="sub-module-title">
5 <text:p>
6 <text:p>
7 <text:p text:style-name="sub-module-title">
8 <text:p>
9 <text:p>
10 <text:p>
11 <text:p text:style-name="module-title">
12 <text:p text:style-name="sub-module-title">
13 <text:p>
14 <text:p text:style-name="sub-module-title">


what I need to determine is this:
what test will tell me if there are any preceding <text:p text:style-name="sub-module-title">s which follow the first preceding <text:p text:style-name="module-title"> of the currently visited <text:p text:style-name="sub-module-title">. For instance, sub-module-titles on lines 4, 7, and 14 above would be true and those on lines 2 and 12 would be false


in advance, much thanks,
Matthew L. Avizinis <mailto:mla@xxxxxxxxx>
at
Gleim Publications, Inc. <http://www.gleim.com>

Current Thread