[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: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 May 2005 21:52:39 +0100
do templates
To add to previous answers, it's technically an error to have two template
rules with the same priority that match the same node, but implementations
are allowed to ignore the error and simply choose the one that comes last.
Many implementations do just that. Saxon allows you to choose between silent
recovery as above, issuing a warning followed by silent recovery (the
default), and issuing a hard error.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: Edward Bryant [mailto:bryant_edward@xxxxxxxxxxx] 
> Sent: 04 May 2005 21:03
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Do Templates Conflict? 
> 
> 
> I was wondering if someone can explain why two templates that 
> both apply to 
> a source xml element do not conflict.
> 
> I have one template that applies to all the paragraphs in a 
> document and 
> another that applies only to the first paragraph. I did this 
> assuming it 
> would somehow not work because of the conflict between the templates. 
> However, to my surprise it worked fine. Now, I am even more 
> worried because 
> I don't know why it worked. Can someone explain what is going on?
> 
> Does the order the templates are listed in matter?
> 
> Does it matter that one selected a more specific context?

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.