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 November 17th, 2014, 01:46 PM
Registered User
 
Join Date: Nov 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Merge First Row using XSLT

Hi

I am new to xslt. I need to convert the xml to to table where first rows is to get merged.

Sample XML:
<Catalog>
<Subject>
<Title>Physics</Title>
<BookList>
<Book Booknumber="1">
<ISBN>1000001</ISBN>
</Book>
<Book Booknumber="2">
<ISBN>1000002</ISBN>
</Book>
<Book Booknumber="3">
<ISBN>1000003</ISBN>
</Book>
</BookList>
</Subject>
<Subject>
<Title>Maths</Title>
<BookList>
<Book Booknumber="1">
<ISBN>1000004</ISBN>
</Book>
<Book Booknumber="2">
<ISBN>1000005</ISBN>
</Book>
<Book Booknumber="3">
<ISBN>1000006</ISBN>
</Book>
</BookList>
</Subject>
</Catalog>

Expected Output
----------------------------------------------------------------------------------
| 100001 |
------------------------------------------------------------------
Physics | 100002 |
------------------------------------------------------------------
| 100003 |
-----------------------------------------------------------------------------------
| 100004 |
-------------------------------------------------------------------
Maths | 100005 |
-------------------------------------------------------------------
| 100006 |
------------------------------------------------------------------------------------





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get the column names row by row for the given xml using xslt Smiley XSLT 0 August 5th, 2013 04:10 AM
Can anybody help me in modification of xls stylesheet to merge two cells of a row Akriti Srivastava ASP.NET 4 General Discussion 0 January 31st, 2013 05:56 AM
Merge nodes using xslt himanshu XSLT 5 September 2nd, 2010 06:40 AM
datagrid row merge mvenkatesan ASP.NET 1.0 and 1.1 Basics 0 May 1st, 2007 04:23 AM
insert new row and merge with existing merged cell funkyProgrammer Excel VBA 1 February 9th, 2004 10:58 AM





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