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

Re: something I'd really like in XSLT

Subject: Re: something I'd really like in XSLT
From: "bryan rasmussen" <rasmussen.bryan@xxxxxxxxx>
Date: Tue, 23 Jan 2007 14:15:33 +0100
Re:  something I'd really like in XSLT
I suppose I should specify then that I am more concerned with the
import precedence, and secondly the priority.

Cheers,
Bryan Rasmussen

On 1/23/07, David Carlisle <davidc@xxxxxxxxx> wrote:

> I remember my lessons correctly, the precedence > is calculated by means of priority,

be careful of terminology: there is "import precedence" and "priority"
both of which affect which templates are used if multiple templates
match, but they are not directly related.

"import precedence" just relates to the stylesheet module that the
template is in, not to the form of the match pattern.

"priority" relates to the explict priority attribute, or if no such
attribute exists, to the default priority for the match pattern.


> based on how specific your match is. > Like "*" has less prio then "nodenamehere",

yes

> which has less prio then "/nodenamehere"

yes

> which has less prio then "/nodenamehere[predicatehere]".

no,
that has the same default priority (0.5) as neither /nodenamehere
nor /nodenamehere[predicatehere] are of the special forms that have
a different default priority,
see
http://www.w3.org/TR/xslt#dt-default-priority
http://www.w3.org/TR/xslt20/#dt-default-priority
for teh exact lists in 1.0 or 2.0

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.