Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 79291 invoked from network); 29 Jun 2004 18:46:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Jun 2004 18:46:26 -0000 Received: (qmail 59386 invoked by uid 500); 29 Jun 2004 18:45:56 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 59206 invoked by uid 500); 29 Jun 2004 18:45:54 -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 59072 invoked by uid 99); 29 Jun 2004 18:45:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [195.130.132.55] (HELO euros.telenet-ops.be) (195.130.132.55) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 29 Jun 2004 11:45:51 -0700 Received: from poros.telenet-ops.be (poros.telenet-ops.be [195.130.132.44]) by euros.telenet-ops.be (Postfix) with ESMTP id D873C4A870 for ; Tue, 29 Jun 2004 19:50:24 +0200 (MEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by poros.telenet-ops.be (Postfix) with SMTP id 1FF09368186 for ; Tue, 29 Jun 2004 19:50:10 +0200 (MEST) Received: from [192.168.123.100] (D5E000F9.kabel.telenet.be [213.224.0.249]) by poros.telenet-ops.be (Postfix) with ESMTP id C6DD9368204 for ; Tue, 29 Jun 2004 19:50:09 +0200 (MEST) Subject: Re: CForms stylesheets - use of xsl:param and xhtml From: Bruno Dumon To: dev@cocoon.apache.org In-Reply-To: References: <1088525394.18849.4.camel@yum> <1088528130.18847.47.camel@yum> Content-Type: text/plain Organization: Outerthought Message-Id: <1088531330.18847.65.camel@yum> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 29 Jun 2004 19:48:50 +0200 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 2004-06-29 at 19:10, Colin Paul Adams wrote: > >>>>> "Bruno" == Bruno Dumon writes: > > >> Yes. At least, only those whose parent is not an html/xhtml > >> element. > > Bruno> So the namespace of an element made using xsl:element is > Bruno> inherited by literally-defined elements? > > Afraid not - as I realised two minutes ago :-) > > Bruno> Let's hope so :-) > > Well, on what I've coded so far - definitely not (when I hit the > reload button - I have to look twice - generation is zero time to my perceptions). yeah, you'd have to be fast to see the difference between 50 en 75 milliseconds, but it sure would be noticeable if you have dozens of concurrent requests to handle. But I'm still not implying there is such degration in performance -- in fact, likely not. > > However, the existing stylesheets are not valid anything, so it is > defeating my purpose (of generating valid xhtml) from proceeding as I > have been - at least without further changes. BTW, what's the advantage of using XHTML? What browser does support it? > > I had just got as far as changing a span into an xsl:element - and > then looked at it's child. > It was at that point I realised what you have just pointed out > (above), and sighed. > But I then positively groaned as i realised the contents of the span > was a table - illegal - span can only contain inline elements - html > 4.01 or any xhtml (I don't bother to check earlier DTDs). > > So what do I do? fix it ;-) > > The span concerned is just apparently surrounding the table with core > attributes - which can equally go on the table itself - so the obvious > solution is to just transfer these attributes to the table element. No > difference as far as (x)html is concerned. > But maybe there is a knock-on effect somewhere? Perhaps there is java > code somewhere that expects this structure? I don't know. Can someone > advise me please? It might help if you mention where this is done (stylesheet/template). -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org bruno@apache.org