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

template conflicts

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


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.