[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: [Stylesheets] Adding a text the *first* timeyouencounter a given element?
Stephane Bortzmeyer wrote: > > I have a custom element <rfc> to put references to RFC. I want to add > a small blurb explaining how to get a RFC but, since there are many > references to RFC in a given text, I want it to appear only the first > time. > > I have no idea on how to do that. Both XSL and DSSSL are stateless so > I cannot keep a "already_seen" variable. But both XSL and DSSSL has query language, something which is not available in LaTeX. Try something like: <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> Jirka -- ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC