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 98169 invoked from network); 11 Jan 2001 14:08:07 -0000 Received: from catv8013.extern.kun.nl (HELO fire.homenet.neonics.com) (@131.174.118.13) by h31.sny.collab.net with SMTP; 11 Jan 2001 14:08:07 -0000 Received: from localhost (forge@localhost) by fire.homenet.neonics.com (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id f0BFHtv02996 for ; Thu, 11 Jan 2001 15:17:55 GMT X-Authentication-Warning: fire.homenet.neonics.com: forge owned process doing -bs Date: Thu, 11 Jan 2001 15:17:55 +0000 (UTC) From: forge@neonics.com X-Sender: forge@fire.homenet.neonics.com To: cocoon-users@xml.apache.org Subject: Re: how can I do this ? (in C2???) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello there, this example should work fine in C1 but I'm trying to get something like this working in C2.. Since you sound like an expert (not that I didn't already know what you explained ;)) could you deliver this stylesheet to me working under C2? The only difference in your stylesheet compared to mine was the inclusion of the tag. On Wed, 10 Jan 2001, Donald Ball wrote: > On Wed, 10 Jan 2001, Piyush Sheth wrote: > > > my logicsheet looks like this > > ----- > > ------ > > ---- > > mylib.* > > > > private String get( String param ) > > { > > new mylib.foo( param ).toString(); > > } > > > > > > > > > > > > ------- > > -------- > > ------- > > ------ > > > > How do I do that ? > > you're really mangling the logicsheet concept here. logicsheets are xslt > stylesheets which are applied to xsp pages to transform tags in special > namespaces into tags (and content) in the xsp namespace. e.g. this page > > > org.postgresql.Driver > ... > > > is transformed into (something like) this: > > > Class.forName("org.postgresql.Driver").newInstance(); > ... > > > and then finally transformed into a java class. > > okay so far? good. now, you're trying to evalute a java method inside an > xpath expression: > > > > you can't _do_ that. when your logicsheet is being applied, the java class > doesn't even _exist_ yet, you can't call one of its methods. you're in the > process of _creating_ the java class at logicsheet application time. > > for the record, your logicsheet should look something more like this: > > > > > > mylib.* > > > private String get(String param) { > new mylib.foo( param ).toString(); > } > > > > > > > > if ("bar".equals(get("foo"))) { > ... > } > > > > > > > > > > - donald > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > For additional commands, e-mail: cocoon-users-help@xml.apache.org >