cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Flegman <>
Subject Re: dynamic node selection
Date Thu, 24 Jul 2003 00:17:47 GMT
> Well, if you have your xpath in $targetnode, wouldn't it simply be:
> <xsl:apply-templates select="$targetnode"/>    ?
> or
> <xsl:for-each select="$targetnode">
>     <xsl:apply-templates/>
> </xsl:for-each>
> 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 <xsl:for-each select="$targetNode"> 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:

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.


Adam Flegman - Senior Software Engineer

Mobile:     (0414) 375 735
Phone:     (07) 5547 8530
Facsimile: (07) 5547 8532
Email #1: 
Email #2:

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message