xsl-list
[Top] [All Lists]

determine existence of preceding element

2004-10-29 06:31:30
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(_at_)gleim(_dot_)com>
at
Gleim Publications, Inc. <http://www.gleim.com>



<Prev in Thread] Current Thread [Next in Thread>