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

RE: How to resolve conflicts in templates

Subject: RE: How to resolve conflicts in templates
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Tue, 17 Aug 1999 10:17:58 +0200
xsl warning specificity conflicts found
You should have only one template for file, and move the filters according
to name attribute to instances of apply-templates at a higher level, or
instances of for-each inside the FILE template. 



-----Original Message-----
From: Herve AGNOUX [mailto:hagnoux@xxxxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, August 17, 1999 9:23 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: How to resolve conflicts in templates


I use Lotus XSL 0.17.4

I use in my xml file some tags with the same name but with 
differents attribute like that :

<FILE name="xx">
<FILE name="yy"> and so on.

In my xsl file I give a general template :
<xsl:template match="FILE>

And more precise like that :
<xsl:template match="FILE[@name='yy']">

Lotus XSL says :
XSL Warning: Specificity conflicts found: "FILE", 
"FILE[@name='yy']" Last found in stylesheet will be used.

How can I resolve this conflict ?

Thanks.

--
Herve AGNOUX  hagnoux@xxxxxxxxxxxxxxxx France.


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


 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.