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

Re: xsl:import xsl:include

Subject: Re: xsl:import xsl:include
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 4 May 2000 10:05:09 -0600 (MDT)
import xsl
> you can not dynamically decide what to import

Correct.

> Ideally I would like to be able to say something like <xsl:import
> href="{$href}"/>
> 
> It seems a rather large oversight to not include something like this.  Am I
> missing some mechanism that provides this functionality?  Anyone know if
> there are plans to include it in future recommendations?

You are not missing anything. I sure hope there are plans to include it in
future recommendations. It would really be nice. The only people who know
about future plans are James Clark and the people on the W3C committee in
charge of XSLT.

I am going to venture a guess that it was left out because it is a bigger
issue than it would seem. The current model allows the stylesheet tree to
be built before XSLT processing really begins. Making imports/includes be
based on the result of evaluation of top-level xsl:variable or xsl:param
instructions would change this.

Also consider that by definition, xsl:import and xsl:include import all
the children of the xsl:stylesheet element from the documents they
reference and add them as children of the xsl:stylesheet element of the
stylesheet tree. You could potentially import something that changes the
value of the expression in your href attribute.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 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.