|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: newbie : dynamic include
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








