first apparition of an element

Subject: first apparition of an element
From: Olivier ROUSSEAU <nepo@xxxxxxx>
Date: Wed, 06 Aug 1997 09:45:00 +0200
How to see if an element is the first of its type.
For example i have:

<title>This is the title</title>
(<sub-title>this might the sub-title but is optional</sub-title>)
<para>this is the first paragraph</para>
<para>this is the second one</para>

And i would like to treat the first paragraph in a diferent way. I can't
use children-number because there might be one or two element before the
first para.

	thanks by advance


 DSSSList info and archive:

Current Thread