|
Subject: Re: [xsl] dynamically applying templates From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Mon, 13 Sep 2004 16:44:40 -0400 |
I'm saying, in effect, there's nothing preventing you from selecting nodes in your config file, and matching them with templates, to achieve "dynamic template selection" if you want.
<xsl:template match="cs:title"> <xsl:apply-templates select="//mods:titleInfo"/> </xsl:template>
<xsl:template match="$style-biblio"> <xsl:apply-templates select="cs:*"/> </xsl:template>
<xsl:template match="//cs:bibliography">
<test>
<xsl:apply-templates select="cs:*"/>
</test>
</xsl:template><xsl:template match="cs:title"> <xsl:apply-templates select="//mods:titleInfo" mode="bib"/> </xsl:template>
<xsl:template match="cs:creator"> <xsl:apply-templates select="//mods:name" mode="bib"/> </xsl:template>
<xsl:template match="mods:titleInfo" mode="bib">
<span class="title">
<xsl:apply-templates/>
</span>
</xsl:template><xsl:template match="mods:name" mode="bib">
<span class="name">
<xsl:apply-templates/>
</span>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] dynamically applying temp, Wendell Piez | Thread | Re: [xsl] dynamically applying temp, Wendell Piez |
| Re: [xsl] Namespace problem, david_n_bertoni | Date | Re: [xsl] Sum produces NaN, G. Ken Holman |
| Month |