[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: multiple output targets (was use-when attribute?)

Subject: Re: multiple output targets (was use-when attribute?)
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Sun, 19 Dec 2004 19:54:21 -0500
latex multiple citation
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.