[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Generate a table in nested form

Subject: Generate a table in nested form
From: Rashi Bhardwaj <rashi.bhardwaj@xxxxxxxxx>
Date: Tue, 7 Dec 2010 17:36:36 +0530
 Generate a table in nested form
I have sample xml in this form:

			<b name="Name" value="Test"/>
			<b name="Identity" value="      5229"/>
			<b name="Last Change Date" value="4/26/2010"/>
			<b name="Last Change Time" value="11:38 AM"/>
			<b name="Initial Date" value="2/11/2010"/>
			<b name="Initial Time" value="09:37 AM"/>
			<b name="Sections 1-1" value="&quot;Application Usage&quot;
			<b name="QQuestion 1-1" value="how are u"/>
			<b name="RResponse 1-1" value="2 - Disagree"/>
			<b name="CComment 1-1" value="fine"/>
			<b name="Section 1_2" value="test 2"/>
			<b name="Question 1_2" value="how"/>
			<b name="Response 1_2" value="3 "/>
			<b name="Comment 1_2" value="fine2"/>
			<b name="Section 1_3" value="test 3"/>
			<b name="Question 1_3" value="where"/>
			<b name="Response 1_3" value="4"/>
			<b name="Comment 1_3" value="ok"/>
			<b name="Section 1_4" value="test 5"/>
			<b name="Question 1_4" value="when"/>
			<b name="Response 1_4" value="5"/>
			<b name="Comment 1_4" value="okk"/>

I want to generate a table columns heads, Name, identity, last
updation date....so on...but for the Questions there will one column
head 'Question' and all the other question should come under this
column Question in different row.
<td>how are u<td></tr>
All question should come under one column Question in each row.


i have used is

<xsl:when test="contains(@name, 'Question')">
<xsl:when test="contains(@name, 'QQuestion')">
<xsl:value-of select="."/>
<xsl:value-of select="."/>

But it is not creating nested output. Same I have to do for comments,
response and sections.

Please tell me where I m wrong.

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.