cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunsberger, Peter" <Peter.Hunsber...@stjude.org>
Subject RE: Confused about xsl:include
Date Thu, 12 Dec 2002 19:10:28 GMT
> The above template match="title" works fine if I paste it into the main
xsl file.  But if 
> instead, right there in it's place, in the main xsl, I put this:
> 
> <xsl:include href="stylesheets/other.xsl"/>
> 
> to include the above file, the match is no longer applied in the output.
I'm perfectly open to > other ways of doing this.  I'm just getting started.

So in-other-words there is no main matching template in the XSL doing the
include?  It sounds like the default template in the primary is being picked
up and it of course is not ever going to apply your included template.  

This isn't a Cocoon problem, you can test your code in any XSLT
debugger/editor (Xslerator for example).  Spend some time at
http://www.mulberrytech.com/xsl/ and check out the list archive there
(search on default templates)...

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message