You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Bachran, Michael" <MB...@microstrategy.com> on 2000/09/01 15:18:42 UTC
Accessing node of other document outside for-each
Hi!
If I do a for-each on element A and within the for-each another for-each on
nodes from another document...
is it possible to do a copy-of (or another access) on the actual node of
element A within the inner for-each loop?
And if, how?
Thanks, Michael
Re: Accessing node of other document outside for-each
Posted by Conny Krappatsch <co...@smb-tech.com>.
Bachran, Michael wrote:
> Hi!
>
> If I do a for-each on element A and within the for-each another for-each on
> nodes from another document...
> is it possible to do a copy-of (or another access) on the actual node of
> element A within the inner for-each loop?
> And if, how?
>
> Thanks, Michael
I didn't try something like this but it could work by defining a variable
containing element A. Something like
<xsl:variable name="TheA" select="A"/>
<xsl:for-each ...>
<xsl:value-of select="$TheA/@attr-of-A"/>
...
I can't guarantee but you may give it try.
regards,
Conny
________________
Conny Krappatsch
SMB GmbH
mailto:conny@smb-tec.com
http://www.smb-tec.com