DOCBOOK-APPS: [Stylesheets] Adding a text the *first* time youencounter a given element?

2003-02-12 Thread Stephane Bortzmeyer
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

Re: DOCBOOK-APPS: [Stylesheets] Adding a text the *first* time youencounter a given element?

2003-02-12 Thread Jirka Kosek
Jeff Beal wrote: Try using xsl:template match=//rfc[1] !-- Add link to RFC here -- /xsl:template I'm not totally sure this will work, but I think since the match is on the /descendant-or-self axis of the root node, this will only match on the first rfc element in the document. In

Re: DOCBOOK-APPS: [Stylesheets] Adding a text the *first* time youencounter a given element?

2003-02-12 Thread Morus Walter
Jirka Kosek writes: Jeff Beal wrote: Try using xsl:template match=//rfc[1] !-- Add link to RFC here -- /xsl:template I'm not totally sure this will work, but I think since the match is on the /descendant-or-self axis of the root node, this will only match on the first rfc