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

RE: Managing semi-trivial sets of stylesheets.

Subject: RE: Managing semi-trivial sets of stylesheets.
From: Leigh Dodds <ldodds@xxxxxxxxxxx>
Date: Wed, 7 Jun 2000 11:46:28 +0100
RE: Managing semi-trivial sets of stylesheets.
Hi,

> > 1. I don't like the absolute path because:

> > 2. I don't like the relative path because:

My solution to this has been to pull out this kind of configuration 
data (e.g. root for directory structure, path to template, includes, etc) 
into a config file, so I have:

<config>
<includes>/ROOT/include/</includes>
</config>

Then in the stylesheet:

<xsl:variable name="configData" select="document('config.xml')" />
<xsl:variable name="includeDirectory" select="$configData/includes" />

<xsl:include href="$includeDirectory/common.xml" />

Although obviously there are various ways to break this down.

It has the added advantage that I pass less parameters on the command 
line (I usually just pass in the path to the config file).

It seems to be pretty flexible.

Maybe not a 'mainstream XML' solution, but it works for me.

Cheers,

L.

-- 
Leigh Dodds, Systems Architect       | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic |    sine necessitates"
http://www.xml.com/pub/xmldeviant    |     -- William of Ockham

--
Mailing list for the XT users community.     (http://4xt.org/list/)
(mailto:list4xt-request@xxxxxxx?Subject=unsubscribe to unsubscribe)


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.