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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1126)
+ Stylus Studio Technical Forum (13844)
+ Website Feedback (244)
- XSLT Help and Discussion (7447)
-> - Convert XML Feed to CSV/SQL/XL... (1)
-> - Working with text node. (1)
-> - No Topic (1)
-> - API for XSLT Converter for .NE... (1)
-> - Getting started (1)
-> + saxon sql extensions - mysql a... (2)
-> - How do I copy and create new e... (1)
-> + substring-before and sums (3)
-> + Parsing special characters in ... (2)
-> + Schema - Require attribute in ... (2)
-> - Edit existing XSL files when n... (1)
-> + How can I use one single XSLT ... (2)
-> - Default selection of value in ... (1)
-> - Problem with watermark in pdf ... (1)
-> + XSLT Parameter Values dialog n... (3)
-> + Value of File Name is not acce... (10)
-> - Need help with a complex table... (1)
-> - How to replace all nordic char... (1)
-> - XSLT java heap space error wit... (1)
-> - Table Overflow to next page (1)
-- Previous [181-200] [201-220] [221-240] Next
+ XQuery Help and Discussion (1870)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (361)
+ Stylus Studio Announcements (113)
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

   
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-2011 All Rights Reserved.