Wrox Programmer Forums
|
BOOK: Beginning XSLT and XPath : Transforming XML Documents and Data
This is the forum to discuss the Wrox book Beginning XSLT and XPath : Transforming XML Documents and Data by Ian Williams ISBN: 978-0-470-47725-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XSLT and XPath : Transforming XML Documents and Data 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 July 18th, 2013, 02:56 AM
Registered User
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default xml to xml transformation using xslt

<tarun>
<atul-holds>
<hold>12000</hold>
<hold>36</hold>
</atul-holds>
<atul-peats>
<peat>12000</peat>
<peat>36</peat>
</atul-peats>
</tarun>
---------------------------------------------
---------------------------------------------
The above data should look like below:

<tarun>
<suhail>
<sriman>
<hold>
<value>12000</value>
</hold>
<peat>
<value>12000</value>
</peat>
</sriman>
<sriman>
<hold>
<value>36</value>
</hold>
<peat>
<value>36</value>
</peat>
</sriman>
</suhail>
</tarun>
 
Old July 18th, 2013, 03:02 AM
Registered User
 
Join Date: Jul 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default More-info

Basically i want to make pairs of 1st child of <atul-holds> with 1st child of <atul-peats> , second child of <atul-holds> with second child of <atul-peats> and so on.





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT - XML Transformation Performance fishstix XSLT 5 April 13th, 2009 01:48 PM
xml schema transformation using xslt xsltbeginner XSLT 1 March 3rd, 2009 10:11 AM
Regarding xml-html transformation of an xml string using xslt and javascript suprakash444 XSLT 1 January 12th, 2009 01:23 AM
Xml to Xml Transformation using xslt ShaileshShinde XSLT 1 July 20th, 2005 01:20 AM
XML to XML transformation using XSLT karjagis XSLT 3 July 30th, 2004 06:13 AM





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