[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

template conflicts


Subject: template conflicts
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Tue, 23 May 2000 13:54:58 +0200

Hi all, 

I need some clarification on template conflicts. 

I have a set of XSLT stylesheets. One of them is the 'top stylesheet' ,
"all.xsl", and includes a number of other stylesheets: 
<xsl:include href="module.xsl"/>
<xsl:include href="domain.xsl"/>

"all.xsl" also *imports* a stylesheet "general.xsl". 
<xsl:import href="general.xsl"/>

"general.xsl" has this template: 
<xsl:template match="p[descendant::head]">
do something
</xsl:template>

"domain.xsl" has this template: 
<xsl:template match="p[descendant::head and ancestor::domain]">
do something else
</xsl:template

I added the template to "domain.xsl" because I needed it to override the
general one in "general.xsl", but it doesn't do so. Is this correct
behaviour? I'm using XT.

Linda van den Brink

"In theory, theory and practice are the same.  In practice, they're not."



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



Current Thread
Keywords