[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Re: for-each


Subject: [xsl] Re: for-each
From: "hemi" <hemi@xxxxxxxxxxxxx>
Date: Sat, 02 Aug 2003 01:35:09 GMT

AROSO Jose Antonio writes:

Hi...

How can i in for-each loop to access a high node in the tree.

For example:

<xsl:for-each
select="Key_Group_Groups/Key_Group/Key_Group_Member_Groups/Key_Group_Member/
Key_Group_MemberProps">


How can i access to the node for example Key_Group?

Best regards

Jose



Hi Jose,

I would use this:
<xsl:for-each select="Key_Group_Groups/Key_Group/Key_Group_Member_Groups/Key_Group_Member/
Key_Group_MemberProps">


**then inside this for-each you can reference Key_Group like this:

<xsl:for-each select="//Key_Group_Groups/Key_Group">
.......
</xsl:for-each>


**then close your first for-each
</xsl:for-each>


hope this helps

Hemi
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread