Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2007, 10:01 AM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default table insertion format problem

"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 name ="AssetDetails" border="2" bgcolor="white">
<tr>
<th>Container</th>
<th>EP</th>
</tr>

<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


 
Old March 9th, 2007, 10:32 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

>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
 
Old March 9th, 2007, 11:56 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

And some of the source XML would help.

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk insertion from a data table to oracle databas Alexkure ASP.NET 1.0 and 1.1 Professional 0 November 12th, 2008 03:24 AM
Number format in the table zrtv SQL Server 2005 6 March 7th, 2008 03:18 AM
Multiple insertion in Table susman Classic ASP Databases 1 October 24th, 2007 05:32 PM
simple problem of insertion abhishek0807 ASP.NET 1.0 and 1.1 Basics 1 March 13th, 2007 08:27 AM
problem in date insertion abhit_kumar JSP Basics 0 December 3rd, 2004 06:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.