Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 9055 invoked from network); 10 Nov 2003 11:49:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Nov 2003 11:49:52 -0000 Received: (qmail 10542 invoked by uid 500); 10 Nov 2003 11:49:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 10526 invoked by uid 500); 10 Nov 2003 11:49:41 -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 10513 invoked from network); 10 Nov 2003 11:49:40 -0000 Received: from unknown (HELO sati.virbus.de) (145.253.246.81) by daedalus.apache.org with SMTP; 10 Nov 2003 11:49:40 -0000 Received: from sati.virbus.de (localhost [127.0.0.1]) by localhost (SMTP Server) with ESMTP id 2B846166A9B for ; Mon, 10 Nov 2003 12:49:40 +0100 (MET) Received: from virbus.de (saraswati.virbus.de [212.144.5.199]) by sati.virbus.de (SMTP Server) with ESMTP id F0667166A94 for ; Mon, 10 Nov 2003 12:49:39 +0100 (MET) Message-ID: <3FAF7B53.4030509@virbus.de> Date: Mon, 10 Nov 2003 12:49:39 +0100 From: Joerg Heinicke User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: de-de, de, en, en-us MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: simple esql-xsl problem References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Maybe it's only a whitespace problem and you have to use test="normalize-space(para) = 'CSE'" Joerg Ashish Kumar wrote: > hi there, > > yeah, of course that was what the earlier code was & that was working > fine. > And now i have to modify that in order to display "Computer Science" > in place of "CSE". > hope this makes clear, > > ashish > > On Mon, 10 Nov 2003, Joerg Heinicke wrote: > > >>On 09.11.2003 21:50, Ashish Kumar wrote: >> >> >>>hi all, >>> i m generating pdf by querying database using esql. here for a >>>particular value got from database table, i have to display some >>>particular information. the xsp code contains: >>>----------- >>> >>> >>>select * from person >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>----------- >>> >>>while the xsl-fo file contains: >>>------------ >>> >>> >>> >>> >>> >>> >>> >> >>Can be simplified to test="para = 'CSE'". >> >> >>> Computer Science >>> >>> >>> >>> >>> >>>---------------- >>> >>>In other words, i have to simply display "Computer Science" when the >>>value under 'para' node (queried from "branch" field in the database >>>table) equals "CSE". >>> >>>But the output displays nothing.... >>>This is a simple task, i suppose, & may be various methods to do this, but >>>this one is not working. >>>plz help me how can i do it. >> >>Are you sure that the output from the database is as you expect it above >>in the stylesheet? Try to remove the xsl:choose/xsl:when and simply add >> >> >> >>Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@virbus.de www.virbus.de --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org