Subject: Re: [xsl] dynamically applying templates From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Wed, 15 Sep 2004 14:46:33 -0400 |
Accordingly, change this template to read:
<xsl:template match="/"> <html> <div> <xsl:apply-templates/> </div> </html> </xsl:template>
.... and add a template to match mods:mods (but notice I pulled the mode, imagining that the "bibliography" mode is to handle nodes in the config document.
That's the template where we'll jump trees, so --
<xsl:template match="mods:mods">
<xsl:apply-templates select="$style-biblio/cs:entry/cs:reftype[@name='book']"
mode="bibliography">
<!-- of course the value 'book' should probably be parameterized -->
<xsl:with-param name="source" select="."/> <!-- this is where we jump to the other tree, carrying the original context with us as the $source -->
Also, a niggle: any particular reason why your configuration couldn't be
<bibliography author-as-sort-order="yes"> <entry reftype="book"> <title font-style="italic" after=", "/> <creator/> </entry> </bibliography>
thereby making it a bit tighter and easier to handle?
citationstyle info (the metadata) content names terms citation bibliography
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] dynamically applying temp, Wendell Piez | Thread | Re: [xsl] dynamically applying temp, Wendell Piez |
Re: [xsl] dynamically applying temp, Wendell Piez | Date | Re: [xsl] dynamically applying temp, Wendell Piez |
Month |