[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: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 Feb 2005 00:02:13 -0000
imports priorities
I think numeric priorities would become pretty unmanageable if they had
global significance rather than applying only locally within a module.
That's the only reason I can think of.

There are all sorts of things one could do to improve the modularity of XSLT
- public/private attributes on variables and named templates, template
priority linked to the schema type hierarchy, syntactically-scoped template
rules, template rules linked to a stage in a pipeline, etc: but none of them
is really compelling in my view. 

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Andrew Welch [mailto:ajwelch@xxxxxxxxxxxxxxx] 
> Sent: 31 January 2005 11:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Priority and import precedence
> 
> 
> 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.
> 
> For example, if stylesheet A imports stylesheets B and C (in that
> order), templates in B will always be selected over C regardless of
> priority.
> 
> Is there a reason for this?  (It seems strange as usually the 
> 'one that
> comes last' selection process is the last resort, not the first)
> 
> cheers
> andrew

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.