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

Re: Do Templates Conflict?

Subject: Re: Do Templates Conflict?
From: JBryant@xxxxxxxxx
Date: Wed, 4 May 2005 15:23:20 -0500
Re:  Do Templates Conflict?
Hi, Edward,

"Does it matter that one selected a more specific context?"

Very much so. As a general rule, the more specific the pattern, the higher 
its priority.

Check out http://www.w3.org/TR/xslt#conflict

You can also set the priority for a template.

<xsl:template match="something" priority="10"> will pretty much ensure 
that this template gets applied when the something element is matched, 
regardless of what other templates exist for the something element.

<xsl:template match="something" priority="-10"> can be handy for ensuring 
that at least some template is reached - an "if all else fails" template.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)

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.