Subject: table insertion format problem
Posted By: nachiketha Post Date: 3/9/2007 9:01:45 AM
"2 eps are inserted in the same row for the same container instead of seperate single single rows"


 i am trying to insert in the table AssetDetails ,for the container 2 eps are there , the 2nd  ep is not listed in the 2 row under the same container name,instead it is launching in the same as that of previous ep.



xslt code goes here ...



<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns="http://www.w3.org/TR/REC-html40">

<xsl:template match="/">
<html>
<body>
<!-- Table Declarations -->

<table name ="AssetDetails" border="2" bgcolor="white">
<tr>
<th>Container</th>
<th>EP</th>
</tr>
<!-- Filling of AssetDetails Table-->
<xsl:for-each select="//container">
<td><xsl:value-of select="@name"/></td>
<xsl:for-each select="//container//eps//ep">
<td><xsl:value-of select="@name"/></td>
</xsl:for-each>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

thank you,
nachikehta


Reply By: mhkay Reply Date: 3/9/2007 9:32:50 AM
>xmlns:xsl="http://www.w3.org/TR/WD-xsl"

This isn't XSLT. It's a language very rarely seen nowadays, which appeared in Internet Explorer 4 in 1998, and for which Microsoft withdrew support about 5 years ago.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply By: joefawcett Reply Date: 3/9/2007 10:56:52 AM
And some of the source XML would help.

--

Joe (Microsoft MVP - XML)

Go to topic 57480

Return to index page 6
Return to index page 5
Return to index page 4
Return to index page 3
Return to index page 2
Return to index page 1