This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Stylesheets] Adding a text the *first* timeyouencounter a given element?


On Wed, Feb 12, 2003 at 04:30:52PM +0100,
 Jirka Kosek <jirka@kosek.cz> wrote 
 a message of 28 lines which said:

> <xsl:template match="rfc">
>   ... process element ...
>   <xsl:if test="not(preceding::rfc)">
>     ... stuff to appear when we are on a first occurence of rfc
> element...
>   </xsl:if>
> </xsl:template>

It works and it is elegant and simple. Thanks. I just have to find a
similar construct in DSSSL (which does not have Xpath).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]