cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: [RT] composition vs. inheritance in blocks
Date Thu, 31 Mar 2005 16:03:40 GMT
Peter Hunsberger wrote:
> On Thu, 31 Mar 2005 17:42:38 +0200, Reinhard Poetz <reinhard@apache.org> wrote:
> 
>>Peter Hunsberger wrote:
>>
>>
>>>One comment: I'd hope that you don't literally copy the
>>>"portal-page.xsl" and modify it?  Instead you should be creating a new
>>>XSL, including "portal-page.xsl" in it and just modifying the
>>>templates that you  wish to override...
>>
>>yes, <xsl:import href="blocks://portal-skin/portal-page.xsl"/> should do it.
> 
> 
> Personally, I'd use <xsl:include href="..."/> most of the time, but
> either way, it's interesting to note that the Cocoon resolver has to
> get involved in resolving the reference, which means the resultant XSL
> isn't portable....

true, but what's the alternative?

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------


Mime
View raw message