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

Re: exclude-result-prefixes required in each imported

Subject: Re: exclude-result-prefixes required in each imported stylesheet
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 18 Sep 2006 17:57:18 +0100
Re:  exclude-result-prefixes required in each imported
> You set it for each individual stylesheet module.
true, but I dodn't see the arguments for that behaviour as clearly black
and white as you describe.

> This means that the source text can be understand in terms of itself, plus 
> any texts it depends upon (via xsl:include or xsl:import).
Not necessarily, the module may be affected by higher priority variable
and template definitions and xsl:output attributes etc.

> If instead, the importing modules settings were used, then you would need to 
> read the set of all modules that depend upon the txt you are reading - a 
> potentially unbounded set - many of it's members might not yet be written.

That's the case already, if a stylesheet module uses $foo and doesn't
have a definition of a variable foo (or even if it does) then if you
need to find foo you need to find the stylesheet (or sheets) that import
this. (Which makes separate compilation interesting no doubt:-)

> So this would be a very bad software engineering practice. Fortunately, the 
> XSLT designers didn't do it  that way.

But most comparable features of xslt _do_ work that way.

David

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.