[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|