Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSL Template not rendering HTML table properly

$
0
0

Hi, In our application XML results are rendered in to an HTML table by apply XSL style sheet. In one of the HTML column (<TD>) we display file names in another table format. <td align="left"><table><xsl:for-each select="./ReportAttribute"><tr><td><xsl:value-of select="@AttrValue"/> </td></tr></xsl:for-each></table></td> The problem here is when there are no files, the table is rendered some thing like this <TD> <table /> </TD> which is completely distorting our HTML output. Has any one faced this issue earlier ? Earlier we were using XSLTranform.Tranform() function which used to render properly. But since XSLTransform is deprecated we started using XSLCompiledTransform resulting this rendering issue. can any one post a work around for this. thanks Guruteja



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>