This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: DSSSL -> XSL
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: DSSSL -> XSL
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: 19 May 2000 07:08:21 -0400
- References: <cfg0slm772.fsf@lucero.santafe.edu>
- Reply-to: Norman Walsh <ndw at nwalsh dot com>
/ Alex Lancaster <alexl@bigfoot.com> was heard to say:
| I have two VARIABLELISTs in this document. The first is a `vanilla'
| one, i.e. it should be treated as per Norm Walsh's stock XSL
| stylesheets.
Ah! It took a few minutes, but I figured it out :-) When you
apply-templates in this template, you go back to the "default
mode". (Modes aren't sticky in XSL.)
| <!-- template (1) -->
| <xsl:template match="*" mode="programmer-info-mode">
| <xsl:text>Running wildcard template for mode: </xsl:text><br/>
| <xsl:apply-templates select="."/>
| </xsl:template>
So when corpauthor is encountered, you're no longer in
programmer-info-mode.
The interesting thing is that if I change your xsl:include to
xsl:import and change this to xsl:apply-imports, then it seems
to work (at least in XT). I can't decide if I think this is a
bug or a feature.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | No man's knowledge here can go
http://www.oasis-open.org/docbook/ | beyond his experience.--John Locke
Chair, DocBook Technical Committee |