Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How to use elements which belong to another node-set? How to use elements which belong to another node-set?To: NULL Date: 2/3/2005 7:23:00 AM Hi All, I have a XSLT program like following: <!-- load the tag names file --> <xsl:variable name="fielddef" select="document('names.xml')/names"/> ... <xsl:for-each select="/Inventory/InventoryItem"> <xsl:element name="FromInventory"> <xsl:value-of select="TimeStamp/@val" /> </xsl:element> <xsl:for-each select="$fielddef/type[@name='Resp_Inventory']/field"> <xsl:element name="Inventory2"> <xsl:value-of select="TimeStamp/@val" /> </xsl:element> </xsl:for-each> </xsl:for-each> So, for the first <xsl:for-each>, I can get value of TimeStamp/@val which is belong the first node-set, No problem. After entering second <xsl:for-each> which it bring the second node-set, so my question is: How can I use the elements which is belong to the first node-set within the second <xsl:for-each> or within the second node-set context? I would really appreicated anybody know how to solve this issue. Thanks, Jim | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
