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

Re: Do Templates Conflict?

Subject: Re: Do Templates Conflict?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 5 May 2005 10:04:30 +0100
xsl overide
> There is a massive gotcha here (or a bug in the spec, depending on your
> point of view).
> 
> Consider a stylesheet that imports two stylesheets, which both contain a
> template that matches the same element:

Surely the whole point of xsl:import is to overide things so I don't
see this as a bug. If you want the imported  templates to be mingled and
prioritised together then xsl:include is your friend.

Of course the natural ordering for imports is a tree partial order, and
so the linear ordering that is imposed to define import precedence is
slightly arbitrary, but it works as well as any other arbitrary
ordering, and I'm not sure the rules around a partial ordering would
have been any easier to explain or any less surprising on edge cases.
So long as you are aware that (almost uniquely for top level
instructions in in xsl) the order of xsl:import statements is
significant, then this isn't so bad is it?

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.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.