|
Subject: [xsl] multiple output targets (was use-when attribute?) From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Sat, 18 Dec 2004 12:57:01 -0500 |
<xsl:template match="/">
<html>
<head>
<title>Testing</title>
</head>
<body>
<div id="content">
<div id="main-content">
<xsl:apply-templates/>
<div id="bibliography">
<xsl:call-template name="bib:format-bibliography">
<xsl:with-param name="output-format='xhtml'"/>
</xsl:call-template>
</div>
</div>
</div>
</body>
</html>
</xsl:template> <xsl:template name="bib:format-bibliography">
<xsl:param name="output-format" select="$output-format"/>
<xsl:choose>
<xsl:when test="$output-format='latex'">
<xsl:apply-templates mode="output-latex"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$bib:formatted-biblist"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <xsl:template match="xhtml:p[@class='bibref']" mode="output-latex">
<xsl:apply-templates mode="output-latex"/>
</xsl:template> <xsl:template match="xhtml:span" mode="output-latex">
<xsl:choose>
<xsl:when test="@style">
<xsl:choose>
<xsl:when test="contains(@style, 'italic')">
<xsl:text>\textit{</xsl:text>
<xsl:value-of select="."/>
<xsl:text>}</xsl:text>
</xsl:when>
<xsl:when test="contains(@style, 'bold')">
<xsl:text>\textbf{</xsl:text>
<xsl:value-of select="."/>
<xsl:text>}</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="output-latex"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Continuous path of elemen, Michael Kay | Thread | Re: [xsl] multiple output targets (, Bruce D'Arcus |
| [xsl] Continuous path of elements s, cgp | Date | [xsl] Splitting merged XHTML cells, honyk |
| Month |