xsl-list
[Top] [All Lists]

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

2004-12-19 13:53:46
On Dec 18, 2004, at 12:57 PM, Bruce D'Arcus wrote:

How's that??

Seems not so good.

I just tried to get this working with another output formats, and it's not seeming to apply the output-latex mode templates like I expect.

So:

1)

<xsl:call-template name="bib:format-bibliography">
  <xsl:with-param name="output-format" select="latex" tunnel="yes"/>
</xsl:call-template>

2)

  <xsl:template name="bib:format-bibliography">
    <xsl:param name="output-format"/>
    <xsl:choose>
      <xsl:when test="$output-format='latex'">
<!-- $bib:formatted-biblist holds the xhtml output -->
        <xsl:for-each select="$bib:formatted-biblist">
          <xsl:apply-templates mode="output-latex"/>
        </xsl:for-each>
      </xsl:when>
      <xsl:otherwise>
        <xsl:copy-of select="$bib:formatted-biblist"/>
      </xsl:otherwise>
    </xsl:choose>
</xsl:template>

3)

  <xsl:template match="xhtml:p[(_at_)class='bibref']" mode="output-latex">
    <xsl:apply-templates mode="output-latex"/>
    <xsl:text>
    </xsl:text>
  </xsl:template>

From what I gather, the output-latex mode is never applied.

Is there something obvious I'm missing?

Bruce


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--