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
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