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 August 13th, 2014, 05:48 AM
Registered User
Join Date: Aug 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need XSLT

Hi All,

I need XSL to translate below input xml into expected output xml.

Req. in brief
I have xml which has item element with attributes itemid and type, i need to segregate those item elements based on its type. Sample input and output is as below.

<catItem item="1" type="A" />
<catItem item="2" type="A" />
<catItem item="3" type="B" />
<catItem item="4" type="B" />
expected output
<Category type="A">
<Item id="1" />
<Item id="2" />
<Category type="B">
<Item id="3" />
<Item id="4" />

Can any one help me to develop XSL for above requirement.

Thanks and Regards,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling xslt into xslt with different xml file ruchi_doda XSLT 0 February 28th, 2012 07:50 AM
Another question about generating XSLT with XSLT danblick XSLT 2 July 16th, 2009 08:40 PM
General XSLT Questions in the XSLT Forum jminatel BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 0 March 31st, 2008 07:50 PM
Can XSLT read DTD/schema and Generate XSLT.. ROCXY XSLT 1 November 6th, 2006 09:39 AM
dynamic xslt -> xslt creation namespace problem jkmyoung XSLT 2 July 15th, 2006 12:42 AM

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