|
Subject: Re: [xsl] dynamically applying templates From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Thu, 16 Sep 2004 01:22:16 -0400 |
.... 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 -->
</xsl:apply-templates>
</xsl:template>
.... see where that gets you ...
<reftype name="book">
<title font-style="italic" after=", "/>
<creator>
<names form="full"/>
</creator>
<origin before="(" after="), ">
<place after=":"/>
<publisher/>
</origin><xsl:template match="cs:origin">
<xsl:param name="source"/>
<xsl:apply-templates>
<xsl:with-param name="source" select="."/>
</xsl:apply-templates>
</xsl:template><xsl:template match="cs:place"> <xsl:param name="source"/> <xsl:apply-templates select="$source/mods:originInfo/mods:place"/> </xsl:template>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] dynamically applying temp, Wendell Piez | Thread | Re: [xsl] dynamically applying temp, Wendell Piez |
| [xsl] Yet another grouping question, Shawn McKenzie | Date | Re: [xsl] Yet another grouping ques, cking |
| Month |