Santosh,
I am currently using this method, but wanted to loop through Columns
node as i need to get other informations like dataType,colSelected
etc.. i will be using these to format the column.
> ... If you want to be more specific about "columns"
> printed, use
> position() in the inner loop to relate to @id in the metadata.
>
> There was another post today (by Martie ...) about just this issue
> of
> matching row data with its metadata.
<xsl:template match="/">
<xsl:for-each select="Results/Rows/Row">
<xsl:for-each select="*">
<xsl:variable name="pos" select="position()"/>
<xsl:variable name="meta-col"
select="/Results/Columns/Column[(_at_)indx = $pos - 1]"/>
<xsl:value-of select="concat($meta-col/colName, ':')"/>
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
Regards,
--A
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--