Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 97910 invoked from network); 30 Mar 2005 23:11:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2005 23:11:27 -0000 Received: (qmail 40103 invoked by uid 500); 30 Mar 2005 23:11:21 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 40006 invoked by uid 500); 30 Mar 2005 23:11:21 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 39985 invoked by uid 99); 30 Mar 2005 23:11:20 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mailgate1.dslextreme.com (HELO mailgate1.dslextreme.com) (66.51.199.94) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 30 Mar 2005 15:11:19 -0800 Received: from mail4.dslextreme.com (unknown [192.168.7.81]) by mailgate1.dslextreme.com (Postfix) with SMTP id A98D6630620 for ; Wed, 30 Mar 2005 15:08:37 -0800 (PST) Received: (qmail 32111 invoked from network); 30 Mar 2005 23:11:11 -0000 Received: from unknown (HELO belagio) (66.51.196.164) by mail4.dslextreme.com with SMTP; Wed, 30 Mar 2005 15:11:11 -0800 Message-ID: <424B320E.5090600@dslextreme.com> Date: Wed, 30 Mar 2005 15:11:10 -0800 From: Ralph Goers User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [RT] composition vs. inheritance in blocks References: <42444CFF.4020807@yahoo.de> <42446062.8000404@nada.kth.se> <424529B7.2020409@yahoo.de> <4245512C.3000107@nada.kth.se> <4248F241.2050503@apache.org> <4249437A.80600@nada.kth.se> <424980CB.4030708@apache.org> <42499D1D.6000104@nada.kth.se> <4249ED2C.8060408@apache.org> <424A84B7.1000008@nada.kth.se> <424AD336.5090804@apache.org> <424B2C2A.7080305@nada.kth.se> In-Reply-To: <424B2C2A.7080305@nada.kth.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSLExtreme-MailGate-Information: Please contact the ISP for more information X-DSLExtreme-MailGate: Found to be clean X-MailScanner-From: ralph.goers@dslextreme.com X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Daniel Fagerstrom wrote: > Ok, I'll give you a new example trying to explain the concept. Let's > start with the portal block and say that I want to use that for my > app, MyPortal, but I want a different skin. The skin consists of the > stylesheet "styles/portal-page.xsl" among other things. We assume that > the designer of the portal block wanted to make the skin overridable > so there is a sitemap rule that exposes the stylesheet in the Portal > block. > > > > > > Now I let MyPortal extends Portal and reimplements the stylesheet in > MyPortal > > > > > > and thanks to polymorphism the user of MyPortal will get > "my-portal-page.xsl" when asking for "styles/portal-page.xsl" and > everything else will be delivered from Portal. Normally, I try to avoid these "theoretical" posts, but since you are picking on the portal... Frankly, if the way you are proposing this was actually how the portal worked we would not be using it. Luckily, to do what you are suggesting is as simply as doing something like: I understand you were trying to make a point, but sometimes I feel like these diatribes resort to using a sledgehammer where a simple screwdriver would do the job nicely. Ralph