Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 22465 invoked from network); 9 Jun 2004 14:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Jun 2004 14:10:56 -0000 Received: (qmail 36603 invoked by uid 500); 9 Jun 2004 14:10:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 36475 invoked by uid 500); 9 Jun 2004 14:10:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 36385 invoked by uid 99); 9 Jun 2004 14:10:26 -0000 Received: from [213.200.226.160] (HELO linux.schlaepfer.com) (213.200.226.160) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 09 Jun 2004 07:10:25 -0700 Received: from localhost (localhost [127.0.0.1]) by localhost.schlaepfer.com (Postfix) with ESMTP id 403DE17FAD for ; Wed, 9 Jun 2004 16:10:09 +0200 (CEST) Received: from linux.schlaepfer.com ([127.0.0.1]) by localhost (linux [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03533-03 for ; Wed, 9 Jun 2004 16:10:08 +0200 (CEST) Received: by linux.schlaepfer.com (Postfix, from userid 502) id 7BEFF1BB4E; Wed, 9 Jun 2004 16:10:08 +0200 (CEST) References: <20040609111707.2F69C1F548@linux.schlaepfer.com> <1086787376.2579.14.camel@localhost.localdomain> In-Reply-To: <1086787376.2579.14.camel@localhost.localdomain> From: "Patrick Schlaepfer" To: users@cocoon.apache.org Subject: Re: sql:block [Cocoon 2.1.5]? Date: Wed, 09 Jun 2004 16:10:08 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20040609141008.7BEFF1BB4E@linux.schlaepfer.com> X-Virus-Scanned: by amavisd-new at local X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The thing is, that it worked with Cocoon 2.1.4, and now stopped working. Anyone having sql:block running with Cocoon 2.1.5? Rui Alberto L. [ISO-8859-1] Gon硬ves writes: > On Wed, 2004-06-09 at 12:17, Patrick Schlaepfer wrote: >> After the SQLTransformer and Filter the xml files looks >> like: >> >> >> - >> New Books List >> - >> - >> - >> - >> 460 >> Adler >> Gerechtigkeitsgasse 7 >> 3011 >> Bern >> 30 >> 2229 >> 0 >> 0 >> >> - >> 5949 >> Alfa Bern> .... >> >> In the xslt there is: >> template match="/page" >> template match="title" >> template match="sql:rowset" >> >> and template match="sql:block[count(sql:row) > 0]" >> >> What exactly does the line above, and why it's not working, >> doesn't match the template... > > This: > > match="sql:block[count(sql:row) > 0] > > will match any element "block" that belongs to the > namespace associated with prefix sql, if that block > has one or more child's called "row" belonging to the > same namespace. > > In your stylesheet, to associate the prefix sql with > the correct namespace, do: > > xmlns:sql="http://apache.org/cocoon/SQL/2.0" > version="1.0"> > > Hope this helps. > > Rui >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org > -- > Rui Alberto L. Gonçalves > PT Inovação > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org