Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 94244 invoked from network); 30 Jan 2001 07:24:18 -0000 Received: from rdu25-5-046.nc.rr.com (HELO akira.webslingerZ.com) (24.25.5.46) by h31.sny.collab.net with SMTP; 30 Jan 2001 07:24:18 -0000 Received: by akira.webslingerZ.com (Postfix, from userid 501) id 5749A130A3; Tue, 30 Jan 2001 02:25:37 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by akira.webslingerZ.com (Postfix) with ESMTP id 545E560B2 for ; Tue, 30 Jan 2001 02:25:37 -0500 (EST) Date: Tue, 30 Jan 2001 02:25:37 -0500 (EST) From: Donald Ball X-Sender: To: Subject: Re: esql:get-xml problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Mon, 29 Jan 2001, [iso-8859-1] P=E5l Wester wrote: > This is an example of text i put in my database... then > I want to edit that text... and since esql > preserves the root-element, I write like this > > > > this should give me: > > =09content > =09bold content > > > this creates this exception: > java.lang.Exception: XSP Java Compiler: Compilation failed for _edit.java > 326: ';' expected. > =09=09=09=09=09=09=09this.xspParser.parse(new InputSource(new > StringReader(_esql_query.resultset.getString("tekst")))).getDocumentEleme= nt( > ) > lookes like the statement lacks a ";".... Now if i write the same > tag enclosed in xml like this: > > =09 > > > it compiles successfully with the resulting xml: > > =09 > =09=09content > =09=09bold content > =09 > (this is the same bug as reported by Sergio Carvalho) it's because esql:get-xml resulted in an xsp expression, which must be evaluated in the context of an element in the result tree. i just committed a patch which tries to work around this by checking to see if esql:get-xml's parent is esql:row-results and generating different source if so. check it out of cvs, please, and give it a whirl. thanks. - donald