[xsl] modularity and flexibility (was keys and variables)

Subject: [xsl] modularity and flexibility (was keys and variables)
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Sat, 21 Aug 2004 15:36:33 -0400
On Aug 21, 2004, at 8:07 AM, Jeni Tennison wrote:

In that case, if the need arose, I could always later change the
representation of that temporary data if need be, and then adjust as
needed. Right?

Yes, although of course any changes would mean changing the stylesheets that mapped to/from that format as well.

True.


OK, here's what I'm thinking. For now, stay with mods and docbook.

First step, modularize the xsl files as cleanly as possible, so that my main file is just basically the following, and can be included in turn in a standard document stylesheet (let's call it dbng.xsl):

	<xsl:include href="drivers/biblio-driver.xsl" />
	<xsl:include href="drivers/document-driver.xsl" />
	<xsl:include href="output/biblio-output.xsl" />
	<xsl:include href="output/citation-output.xsl" />

If I'm right, then adding a new format just means changing the drivers (probably within the context of an entire new directory).

Does this seem sensible?

BTW, the temporary tree and grouping stuff I am now doing in XSLT 2.0: there are ways to do this in 1.0 using standards exslt extensions; yes?

Bruce

Current Thread