[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On Dec 19, 2004, at 6:17 PM, Michael Kay wrote:
<?xml version="1.0" encoding="utf-8"?>
<article xmlns="http://docbook.org/docbook-ng">
<info>
<title>Test</title>
</info>
<section>
<info>
<title>Introduction</title>
</info>
<para>A citation with page number detail: <citation>
<biblioref linkend="Veer1996a" units="page" begin="23" end="24"/>
</citation>.</para>
<para>Some more citations: <citation>
<biblioref linkend="Tilly2000a"/>
<biblioref linkend="Tilly2002a"/>
<biblioref linkend="Thrift1990a"/>
<biblioref linkend="TimesP2001a"/>
</citation>. A citation <footnote>
<para>... in a footnote <citation>
<biblioref linkend="Tilly2000a" begin="234"/>
</citation>
</para>
</footnote>.</para>
</section>
<bibliography/>
</article>
This seems to be telling me what I was guessing, but I don't understand why it's not applying the templates in the output-latex mode:
<xsl:call-template name="bib:format-bibliography" line="46" module="dbng-latex.xsl">
<xsl:template name="bib:format-bibliography" line="250" module="citeproc.xsl">
<xsl:variable name="output-format" line="251" module="citeproc.xsl">
</xsl:variable>
<xsl:choose line="252" module="citeproc.xsl">
<xsl:copy-of select="$bib:formatted-biblist" line="259" module="citeproc.xsl">
</xsl:copy-of>
</xsl:choose>
<xsl:if test="$biboutfile" line="262" module="citeproc.xsl">
<xsl:variable name="biboutfile" line="9" module="CONFIG">
</xsl:variable>
</xsl:if>
</xsl:template>
</xsl:call-template>
I think I had it that way earlier, but tried this other way because it didn't work.
Bruce
Re: [xsl] multiple output targets (was use-when attribute?)
Subject: Re: [xsl] multiple output targets (was use-when attribute?) From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Sun, 19 Dec 2004 19:54:21 -0500 |
On Dec 19, 2004, at 6:17 PM, Michael Kay wrote:
Can't tell what's wrong without seeing your source document.
<?xml version="1.0" encoding="utf-8"?>
<article xmlns="http://docbook.org/docbook-ng">
<info>
<title>Test</title>
</info>
<section>
<info>
<title>Introduction</title>
</info>
<para>A citation with page number detail: <citation>
<biblioref linkend="Veer1996a" units="page" begin="23" end="24"/>
</citation>.</para>
<para>Some more citations: <citation>
<biblioref linkend="Tilly2000a"/>
<biblioref linkend="Tilly2002a"/>
<biblioref linkend="Thrift1990a"/>
<biblioref linkend="TimesP2001a"/>
</citation>. A citation <footnote>
<para>... in a footnote <citation>
<biblioref linkend="Tilly2000a" begin="234"/>
</citation>
</para>
</footnote>.</para>
</section>
<bibliography/>
</article>
If you're running Saxon, the -T trace is always useful to understand which
templates are being applied.
This seems to be telling me what I was guessing, but I don't understand why it's not applying the templates in the output-latex mode:
<xsl:call-template name="bib:format-bibliography" line="46" module="dbng-latex.xsl">
<xsl:template name="bib:format-bibliography" line="250" module="citeproc.xsl">
<xsl:variable name="output-format" line="251" module="citeproc.xsl">
</xsl:variable>
<xsl:choose line="252" module="citeproc.xsl">
<xsl:copy-of select="$bib:formatted-biblist" line="259" module="citeproc.xsl">
</xsl:copy-of>
</xsl:choose>
<xsl:if test="$biboutfile" line="262" module="citeproc.xsl">
<xsl:variable name="biboutfile" line="9" module="CONFIG">
</xsl:variable>
</xsl:if>
</xsl:template>
</xsl:call-template>
The code
<xsl:for-each select="$bib:formatted-biblist"> <xsl:apply-templates mode="output-latex"/> </xsl:for-each>
is a long-winded way of doing
<xsl:apply-templates select="$bib:formatted-biblist" mode="output-latex"/>
I think I had it that way earlier, but tried this other way because it didn't work.
Bruce
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] multiple output targets (, Michael Kay | Thread | Re: [xsl] multiple output targets (, Bruce D'Arcus |
Re: [xsl] Splitting merged XHTML ce, Marian Olteanu | Date | Re: [xsl] multiple output targets (, Bruce D'Arcus |
Month |