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

Re: [XSLT 1.0] Q: recursively eliminate empty nodes

Subject: Re: [XSLT 1.0] Q: recursively eliminate empty nodes
From: Andriy Gerasika <andriy.gerasika@xxxxxxxxx>
Date: Tue, 09 Nov 2010 00:16:26 +0200
Re:  [XSLT 1.0] Q: recursively eliminate empty nodes
http://www.devguru.com/technologies/xslt/quickref/xslt_element_template.html
fragment
The optional priority attribute is a real number that ranges from -9.0 to 0.0 to 9.0 that sets the priority of importance for a template.

why is -9 good practice rather that -188 or -123.456, or, as in the posted code, -0.5 ? what is so special about -9 that you say it _should_ be used?

 >
 > Saxon will say Recoverable Error if two template match the same node.


sorry, I thought <xsl:template match="@*|node()"> and <xsl:template match="*[not(node())]" /> have the same default priority

I just use identity template priority -9 as universal for life

But there was no other templates of the same priority in the supplied code.

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.