xsl-list
[Top] [All Lists]

xsl:with-param and imports?

2004-12-28 08:49:01
Question:

Why can I not use xsl:with-param with xsl:import and xsl:include?

Or alternately, is there some other workaround for the following?

I have my stylesheets, which require a top-level parameter called citation-style.

These stylesheets then get imported into a document stylesheet like so, in which two primary templates get called:

  <xsl:import href="../citeproc.xsl"/>
  <xsl:output method="xhtml" encoding="utf-8" indent="yes"/>
  <xsl:strip-space elements="*"/>
  <xsl:template match="/">
    <html>
      <head>
        <title>Testing</title>
      </head>
      <body>
        <div id="content">
          <div id="main-content">
            <xsl:apply-templates/>
            <xsl:if test="//db:footnote">
              <div id="notes">
                <h3>Notes:</h3>
<xsl:apply-templates select="//db:footnote" mode="footnote-list"/>
              </div>
            </xsl:if>
            <div id="bibliography">
              <h3>References</h3>
              <xsl:call-template name="bib:format-bibliography">
                <xsl:with-param name="output-format" select="'xhtml'"/>
              </xsl:call-template>
            </div>
          </div>
        </div>
      </body>
    </html>
  </xsl:template>

While it's not essential to be able to set the citation-style parameter in this stylesheet, it would be nice (a document stylesheet would often imply a single citation-style). But how?

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>
--~--



<Prev in Thread] Current Thread [Next in Thread>