Adam Flegman wrote:

For example if parameters parentNode = "foo" and childNode = "bar", then
$targetNode would evaluate to the string "foo/bar". I would want the 'for-each'
statement to select all the "bar" nodes under the "foo" parent node.

I think the only step I am missing is how to write a xpath node selection query
that can take a string parameter as its argument.



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.

Tony


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to