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

Re: Preference rules for /something and /*

Subject: Re: Preference rules for /something and /*
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 19 Jun 2007 17:59:03 +0200
Re:  Preference rules for /something and /*
Wendell, David,

Thank you both for your clear and extensive answers, it clarifies it all :)

Cheers,
-- Abel

Wendell Piez wrote:
Abel,


Yes. Both of these fall into the "anything else" category. There are three categories:


1. Simple tests by name, on the child or attribute axis in a single step
   e.g. "root" or "@root" -- priority 0
2. "Wildcard" matches on the child or attribute axis in a single step
   e.g. "@*" or "comment()" -- priority -0.5
3. Anything else
   e.g. "//root", "/root", "/*/root" or "/*" -- priority 0.5

(There's also a category between rules 1 and 2: a match on a namespace-and-type, with a single step, such as "html:*" or "svg:node()", gets priority 0.25.)

<snip />

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.