← Prev in month ← Prev in thread

Re: DOCBOOK-APPS: DSSSL -> XSL

From
Norman Walsh <>
Date
2000-05-19T11:15:37+00:00
ID
Thread
Re: DOCBOOK-APPS: DSSSL -> XSL
/ Alex Lancaster <> 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 <>      | No man's knowledge here can go
http://www.oasis-open.org/docbook/ | beyond his experience.--John Locke
Chair, DocBook Technical Committee |
← Prev in month ← Prev in thread