Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML 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
  #1 (permalink)  
Old October 30th, 2003, 04:23 PM
Authorized User
Join Date: Sep 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default format Table and Cell in XSL?

I need to format my XSL file so that it will display data in a table with 2 columns. Eg:

Title: ABC
Age: 9
Level: 12
Grade: B

But my current display is:


I have <DIV> and <SPAN> in my code. But I tried to use <TABLE> ,<TR>, <TD> .. etc. It just dun work :(

  #2 (permalink)  
Old October 31st, 2003, 05:22 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

Show us your XML and XSL.
  #3 (permalink)  
Old November 13th, 2003, 01:49 PM
Registered User
Join Date: Nov 2003
Location: Worthington, OH, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Something like this should work:
<xsl:for-each select="NodeID">
<tr><td> Title:</td><td>
<xsl:value-of select="Title"/>
<tr><td> Age:</td><td>
<xsl:value-of select="Age"/>
<tr><td> Level:</td><td>
<xsl:value-of select="Level"/>
<tr><td> Grade:</td><td>
<xsl:value-of select="Grade"/>

Similar Threads
Thread Thread Starter Forum Replies Last Post
very urgent:cals table to indesign table using xsl franklinclinton XSLT 1 December 16th, 2009 03:48 PM
Select date from cell with m/d/yyyy h:mm format mona_upm84 Excel VBA 2 August 10th, 2008 05:58 PM
XSL DateTime format for Excel fmoon606 XSLT 8 May 23rd, 2008 05:35 PM
Cell Accounting Format jcarey00 Excel VBA 1 September 28th, 2007 04:47 AM
apply xsl format to an xmlhttp request darkhalf XSLT 5 September 5th, 2006 08:34 AM

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