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

design ideas? exploiting variables

Subject: design ideas? exploiting variables
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Tue, 14 Dec 2004 10:04:39 -0500
document design ideas
I'm reworking my citation stylesheets to be more dependent on variables. I have it now working quite nicely with one piece of the problem: the bibliographic list. It's all handled in variables apart from the main document, such that printing it is as simple as:

          <div id="bibliography">
            <xsl:copy-of select="$formatted-biblist"/>
          </div>

.... and writing out the raw modsCollection is as easy as:

    <xsl:if test="$biboutfile">
      <xsl:result-document href="{$biboutfile}">
        <xsl:copy-of select="$raw-biblist"/>
      </xsl:result-document>
    </xsl:if>

My question is, what might be a good way to approach an output driver system?

So, my current code is oriented towards xhtml output. But I want to be able to write simple simple output drivers for other formats that just takes the content in the formatted-biblist variable (which is just xhtml) and transforms it (into, for example, TeX or WordML).

So, if I have a stylesheet for my document that output TeX code, I want to be able to include/import my stylesheet -- I guess with an output format parameter? -- and have it return the bibliography and citations for the correct output format.

How should I approach that?

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.