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

Re: Dynamic import / include?

Subject: Re: Dynamic import / include?
From: JBryant@xxxxxxxxx
Date: Tue, 26 Jul 2005 10:57:45 -0500
import include
Hi, Dan,

Not directly. However, I can think of at least one roundabout way.

You can have a first stylesheet read the name of that value and write a 
second stylesheet that specifies the necessary file to include/import. 
Then the second stylesheet does the transformations you need.

While I was thinking about the first answer, another came to me: You could 
use a very simple stylesheet to write a command that passes the name of 
the file to your main stylesheet as a parameter. Then run the command 
(which you could store in a file).

Either way, you end up with a kind of daisy chain effect to get it to 
work.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




"Dan Powderhill" <dan.powderhill@xxxxxxxxxxxxxxx> 
07/26/2005 10:32 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc

Subject
Spam: Dynamic import / include?






Is it possible using XSLT 1 to dynamically import / include another
stylesheet based on the value of a node in the XML?

I have a node (which only appears once per XML doc) within my XML which
contains the filename name of a stylesheet to include - I'd like the XSL
to include or import this using xsl:import or xsl:include.

Is there an easy way of doing this at all?

Dan

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.