Jeff, it came up to my mind just now... why don't you use a Xalan extension ? There is an "evaluate" function in there for such cases. Though I never use it, it seems to fit the bill: see for youself at http://xml.apache.org/xalan-j/extensionslib.html#evaluate .
Best regards, --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: Jeff Turner [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 3:46 AM > To: [EMAIL PROTECTED] > Subject: Re: XPath transformer? > > > On Fri, Aug 30, 2002 at 10:55:03AM +0200, Luca Morandini wrote: > > > Not easily, because the 'match' attribute cannot be dynamic. Eg, I > > > > Oh, I see... so you want a *dynamic* selector. > > > > Hmm... this was not apparent from your example, It seemed you wanted > > just a way to select one chapter amongst many. > > > > Anyway, I think you should dirt your fingers with Xalan to get want you > > want. > > Yes, it can be done with document() > > > I cannot appreciate if this prospective XPathTransformer could be > > of general use, though... I never had such a need myself. > > FTR, I submitted an XPathTransformer at > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235 > > --Jeff > > > > Best regards, > > > > > > --------------------------------------------- > > Luca Morandini > > GIS Consultant > > [EMAIL PROTECTED] > > http://utenti.tripod.it/lmorandini/index.html > > --------------------------------------------- > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>