This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

template conflicts


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]