[Home] [By Thread] [By Date] [Recent Entries]
Hi Shailesh,
If you have the same number of img elements in both missing and redundant then something like below should work. Otherwise you need a little more logic. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/imgBook"> <html> <head> <title>Sample</title> </head> <body> <table border="1"> <tr> <td>missing</td> <td>redundant</td> </tr> <xsl:for-each select="missing/img"> <xsl:variable name="pos" select="position()"/> <tr> <td> <xsl:value-of select="@name"/> </td> <td> <xsl:value-of select="../../redundant/img[$pos]/@name"/> </td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Shailesh Shinde wrote: Hi All I have an Input xml as:
|

Cart



