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

Re: stylesheet organisation

Subject: Re: stylesheet organisation
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 04 Sep 2011 11:09:36 +0100
Re:  stylesheet organisation
On 04/09/2011 10:59, Alex Muir wrote:
Something I'm just wondering for the sake of learning more...

Had XSLT only defined an xsl:include in the spec and did not define
an xsl:import such that I assume it would force the authors to use
template priorities to establish precedence.

Would XSLT...

1. Be lot less powerful such that you could not implement something
in an xsl:import-less XSLT?

2. Be much more difficult to program certain things or perhaps just
less convenient?

3 Be something else....

---

Having both xsl:import and xsl:include is probably one of the more
confusing and arguably least successful parts of the XSLT language
design, but I think one of the main factors governing the design of
xsl:import is that you should be able to take a big stock stylesheet as a black box (say the docbook or TEI collections) and over-ride templates
for specific elements without knowing too much about the internals.
hence the design that import precedence trumps priority.


On the other hand though, the fact that import precedence has such a
fundamental effect on template matching makes it hard to use xsl:import
as a means of splitting up large stylesheets purely for organisational
convenience, hence the need for xsl:include...


David



-- google plus: https:/profiles.google.com/d.p.carlisle

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.