XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
firoz muhammedSubject: Dispalying data whith xsl:for each in two coloumns
Author: firoz muhammed
Date: 09 Oct 2009 12:17 AM
Originally Posted: 06 Oct 2009 02:43 AM
Hi
I have an xml with data like

<EVENT_LIST>
<EVENT>
<EVENT_NAME>Dinner</EVENT_NAME>
<TIME>11:45 AM</TIME>
<DATE>2/30/2009</DATE>
</EVENT>
<EVENT>
<EVENT_NAME>Tour</EVENT_NAME>
<TIME>11:45 AM</TIME>
<DATE>2/30/2009</DATE>
</EVENT>
<EVENT>
<EVENT_NAME>Meeting</EVENT_NAME>
<TIME>11:45 AM</TIME>
<DATE>2/30/2009</DATE>
</EVENT>
<EVENT>
<EVENT_NAME>Lunch</EVENT_NAME>
<TIME>11:45 AM</TIME>
<DATE>2/30/2009</DATE>
</EVENT>
</EVENT_LIST>

I can display the event names in a single coloumn using

<xsl:for-each select="EVENT_LIST/EVENT">
<tr><td><xsl:value-of select ="EVENT_NAME"/></td></tr>
</xsl:for-each >

How can i display these values in a 2d table with 2 columns as shown below

Dinner Tour
Meeting Lunch

Postnext
James DelaneySubject: Dispalying data whith xsl:for each in two coloumns
Author: James Delaney
Date: 08 Oct 2009 05:12 PM
The document for reference did not upload. Can you please show the desired output?

Posttop
firoz muhammedSubject: Dispalying data whith xsl:for each in two coloumns
Author: firoz muhammed
Date: 09 Oct 2009 12:20 AM
Hi James thank u for looking into my problem. I want it to be displayed in two columns as shown below

Dinner Tour
Meeting Lunch

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.