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

RE: postion gives me 2 instead of 1

Subject: RE: postion gives me 2 instead of 1
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 20 Jun 2003 18:37:17 +0100
RE:  postion gives me 2 instead of 1
> I don't understand why this is so. I thought the templates 
> that were most specific got applied before the ones that were 
> more general?

The rule is that higher-priority templates get applied in preference to
lower-priority ones. The default priority is assessed based on some very
simple rules that are related to how "specific" the template rule is,
but the rules do not guarantee that if rule R1 matches a subset of the
nodes that R2 matches, then R1 always has higher priority. In your case,
both the rules have the same priority.

It's always safest to use explicit priority attributes if you have
several rules that match the same nodes.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.