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

Re: import, xslt 2.1

Subject: Re: import, xslt 2.1
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Sat, 13 Mar 2010 08:10:07 +0000
Re:  import
On 12/03/10 16:37, Michael Kay wrote:

<xsl:import href="fred.xsl" use-when="doc-available('../dirName')"/>

That sort of thing?
     Sounds like a kludge Mike?


I'm sorry that you think so. We wanted a general purpose feature for conditional compilation, and we introduced one which I think is in many ways superior to the conditional compilation features found in other languages, where they exist at all.

It's not clear to me why so many people ask for some kind of run-time
conditional xsl:include. It shows a complete lack of understanding of the
XSLT processing model. Dynamic loading as practiced in Java, for example,
could be an interesting feature, but I don't think anyone would expect it to
be done using xsl:include.


Should I read xml:import and your complaints about xsl:include as being
in the same category?


btw I can't get


 <xsl:import href="fred.xsl"
     use-when="doc-available('../dir/filename.xml')"/>

to work, even when the relative file exists.

any suggestions please?






regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.