This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [Stylesheets] Adding a text the *first* timeyouencounter a given element?
- From: Stephane Bortzmeyer <bortzmeyer at nic dot fr>
- To: Jirka Kosek <jirka at kosek dot cz>
- Cc: Stephane Bortzmeyer <bortzmeyer at nic dot fr>, docbook-apps at lists dot oasis-open dot org
- Date: Wed, 12 Feb 2003 17:04:41 +0100
- Subject: Re: DOCBOOK-APPS: [Stylesheets] Adding a text the *first* timeyouencounter a given element?
- Organization: NIC France
- References: <20030212152200.GA18823@nic.fr> <3E4A68AC.A844147A@kosek.cz>
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).