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

Re: cascading for name templates vs match templates

Subject: Re: cascading for name templates vs match templates
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 09 May 2002 01:28:24 +0200
match templates
Hello Mattias,

I gather from your error, that it's exactly the problem Stuart describes. You have to change your <xsl:include>s to <xsl:import>s "and everything will be ok then" ;-)

Joerg

Stuart Celarier schrieb:
Mattias, you didn't really specify if you are using <xsl:include> or
<xsl:import>. They are quite different. For reference, see the XSLT 1.0
spec http://www.w3.org/TR/xslt#section-Combining-Stylesheets.

What you describe sound possible, and it sounds like you'd like to be
using <xsl:import>. Check out <xsl:import> and <xsl:include> in the spec
or any XSLT textbook. If this doesn't solve your problem, please post a
brief, minimal example of your problem and include the name of the XSLT
processor you are using.

Cheers,
Stuart

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mattias
Konradsson
When you include stylesheets containing templates matching the same
elements
they're cascaded in the order they're added and the templates actually
defined in the stylesheet taking priority, but this doesn't seem true
for
template with name attributes where I'm getting an "duplicit name" error
when including stylesheets that has the same name as another. I'd really
like this to work like match templates so I can "inherit" templates if
they
exist, is there any way to do that or is it just the way it is?


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.