|
Subject: Re: (dsssl) Making a special treatment for the *first* occurrence of an element From: Yann Dirson <ydirson@xxxxxxxxxxxxxxxxxxxxx> Date: Tue, 16 Sep 2003 17:41:25 +0200 |
On Tue, Sep 16, 2003 at 01:43:12PM +0200, Stephane Bortzmeyer wrote:
> I'm trying to process a list of elements (DocBook's <othercredit> if
> you want to know) with a special treatment for the first element of
> the list (literal "I would like to thank also: ").
>
> In a procedural language like TeX, I would create a counter and
> increment it at each step. The first element is the one where the
> counter is still zero.
>
> In XSL, I would use Xpath. The first element is the one where <xsl:if
> test="not(preceding::othercredit)"> yields true.
>
> How to do it with DSSSL?
Maybe you can check whether element-number is 1, or if applicable if
first-sibling? or absolute-first-sibling? returns #t ?
--
Yann Dirson <ydirson@xxxxxxxxxx> | Why make M$-Bill richer & richer ?
Debian-related: <dirson@xxxxxxxxxx> | Support Debian GNU/Linux:
Pro: <yann.dirson@xxxxxxxxxxxxx> | Freedom, Power, Stability, Gratuity
http://ydirson.free.fr/ | Check <http://www.debian.org/>
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| (dsssl) Making a special treatment , Stephane Bortzmeyer | Thread | Re: (dsssl) Making a special treatm, Stephane Bortzmeyer |
| (dsssl) Making a special treatment , Stephane Bortzmeyer | Date | Re: (dsssl) Making a special treatm, Stephane Bortzmeyer |
| Month |