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

RE: Conditinally including an XSL module

Subject: RE: Conditinally including an XSL module
From: RSuiter@xxxxxxxxx
Date: Mon, 17 Jul 2000 13:24:49 -0500
RE: Conditinally including an XSL module
Mike Kay:

>So what's the underlying requirement that people would like a "run-time
>include" to satisfy? Presumably it's to have a different set of template
>rules depending on what you find in the source document, and perhaps to
have
>different sets of template rules in force at different times.

I think you are right (in the general case).  I think the reason is that
one would like to have only one stylesheet
for a whole system, even though the system contains different documents
with somewhat different processing
requirements.  I had a similar need in which depending on the source
document I definitely needed different
templates, and the most natural way of writing them would have used mostly
the same element names and
structures even though the results would have to be (somewhat) different in
the two cases.

I ended up creating separate high level stylesheets for each "run-time"
situation.  These were very brief,
because each of them could statically include all the templates that were
common to them all.
Then I also had separate includes for the templates that were unique to
each "run-time" situation.

The main reason why I would have liked to avoid this, though, was that (as
far as I know),
this means some thrashing if my xml's come through the system at random, so
that first I'd need one stylesheet,
then the other.  It would be nice if there could only be one stylesheet
that would stay resident in memory as
the system processed multiple documents.

Rick Suiter



 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.