Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Tricky XSL xinclude question [Thread Next] Re: Tricky XSL xinclude questionTo: NULL Date: 5/2/2005 12:09:00 AM Hi David, > <?xml version="1.0" encoding="UTF-8"?> > <root> > <root> > <element>1</element> > <element>2</element> > </root> > <element>A</element> > <element>B</element> > </root> your xml tree is right i can access the /root/root/element/, which give me the "1". The problem is, i will do something like that: <xsl:for-each select="root/element"> <tr> <td><xsl:value-of select="."/></td> <!-- give me A and so on --> <!-- Thats the big question: access the 1 and so on in the same loop <td><xsl:value-of select="../../element"/></td> --> </tr> </xsl:for-each> I've try /root/root[position()]/element in the for-each loop, but this wont work. Best regards Rene | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
