Re: [xsl] XSL formatting

Subject: Re: [xsl] XSL formatting
From: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Fri, 23 Dec 2005 11:07:36 +0200
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="";>
<xsl:template match="/imgBook">
<table border="1">
<xsl:for-each select="missing/img">
<xsl:variable name="pos" select="position()"/>
<xsl:value-of select="@name"/>
<xsl:value-of select="../../redundant/img[$pos]/@name"/>

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Shailesh Shinde wrote:
Hi All
I have an Input xml as:

<imgBook node="">
<img name = "path_trace3%20wo%20text.png"/>
<img name = "dm_arrow_right.png"/>
<img name = "dm_arrow_corner.png"/>
<img name = "40LinkedDoc.png"/>
<img name = "artList_xlinkedpngs.xls"/>
<img name = "Dublin_two_dwg.png"/>

I have to display html view of this as in table where heading is missing and
Under that @name for respective headings.


Current Thread