Return-Path: Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 96152 invoked by uid 500); 24 Jul 2003 00:17:40 -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 96036 invoked from network); 24 Jul 2003 00:17:39 -0000 Received: from web12403.mail.yahoo.com (216.136.173.130) by daedalus.apache.org with SMTP; 24 Jul 2003 00:17:39 -0000 Message-ID: <20030724001747.62165.qmail@web12403.mail.yahoo.com> Received: from [203.5.10.172] by web12403.mail.yahoo.com via HTTP; Wed, 23 Jul 2003 17:17:47 PDT Date: Wed, 23 Jul 2003 17:17:47 -0700 (PDT) From: Adam Flegman Subject: Re: dynamic node selection To: users@cocoon.apache.org In-Reply-To: <3F1F1516.2060100@umn.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > Well, if you have your xpath in $targetnode, wouldn't it simply be: > > ? > > or > > > > > > To go along with your code. I haven't done XSLT in a while, so I'm a > little rusty. > Hi Tony, The value of $targetNode is some arbitrary string value that (hopefully) looks like an xml node path. At design time I dont know all the possible values that the $targetNode string may have. I have tried to use the approach but it seems that the 'select' part doesnt like using a string parameter. I get the following error report from cocoon: ---------------------------------------------------- Exception in creating Transform Handler More precisely: org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.NullPointerException ---------------------------------------------------- If I could find a way to take the string value of $targetNode and actually select the corresponding nodes then I think the problem is solved. Ad. ===== Adam Flegman - Senior Software Engineer Mobile: (0414) 375 735 Phone: (07) 5547 8530 Facsimile: (07) 5547 8532 Email #1: adam_flegman@yahoo.com Email #2: planemad@optusnet.com.au __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org