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

Re: Priority and import precedence

Subject: Re: Priority and import precedence
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 31 Jan 2005 15:23:41 GMT
same importeur
  It seems the priority attribute on a template is of less importance than
  the order in which stylesheets are imported, when using
  xsl:apply-imports.


and also apply-templates. templates in the importing stylesheet always
win, irrespective of priority, which is only considered for templates
at the same import level.

> Is there a reason for this?  

Apart from the consistency argument above, the answer to "why did you do
it that way" questions can only be answered by people on the original WG,
most of whom aren't so active on this list these days, I think:-)

Importing works well in cases of simple overrides, but if you need
finer control over which templates get executed I find it's often better
to use xsl:include and then control individual templates with priority.
But then you lose apply-import functionality, unless you are using xslt2
when you can use next-match which is more or less the same thing but
without the dependency on import.



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.