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

RE: newbie : dynamic include

Subject: RE: newbie : dynamic include
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 13 Jul 2000 17:47:32 +0100
dynamic include statement
> Is it possible to include a file in a dynamic way?
> Something like this (which doesn't work :)
> <xsl:include href="{$include}"/>

Not directly. You can
- modify the stylesheet before use (e.g. by using another XSLT stylesheet)
- or use a URL in the <xsl:include> that refers to dynamically-generated
content, e.g. a servlet.

Some products may allow you to supply a URI resolver that interprets the URI
dynamically, but this is outside the scope of the standard.

You can write the variable part of the xsl:include statement as an XML
entity reference, though this only shifts the problem. However, there may
then be facilities in the XML parser to control how entity references are
resolved.

Mike Kay


 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.