XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 6th, 2011, 05:56 AM
krvxxx krvxxx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Posts: 1 krvxxx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 14 sec
Reputation Power: 0
XML conversion

Hi,

Could anyone please help me to convert XML to XML by using XSLT?

My input xml is:
<Root>
<Students>
<Student>
<RegId>12001</RegId>
<Absences>
<Absence>
<StartDate>2010-11-01</StartDate>
<EndDate>2010-11-02</EndDate>
<NoOfLeave>2</NoOfLeave>
<Category>SIC</Category>
</Absence>

<Absence>
<StartDate>2010-11-03</StartDate>
<EndDate>2010-11-03</EndDate>
<NoOfLeave>1</NoOfLeave>
<Category>SIC</Category>
</Absence>

<Absence>
<StartDate>2010-11-04</StartDate>
<EndDate>2010-11-04</EndDate>
<NoOfLeave>1</NoOfLeave>
<Category>SIC</Category>
</Absence>

<Absence>
<StartDate>2010-11-05</StartDate>
<EndDate>2010-11-05</EndDate>
<NoOfLeave>1</NoOfLeave>
<Category>TRN</Category>
</Absence>

<Absence>
<StartDate>2010-11-06</StartDate>
<EndDate>2010-11-06</EndDate>
<NoOfLeave>1</NoOfLeave>
<Category>SIC</Category>
</Absence>

</Absences>
</Student>
</Students>
</Root>

And, I want out in XML format (by using XSL) as follows:

<Root>
<Students>
<Student>
<RegId>12001</RegId>
<Absences>
<Absence>
<StartDate>2010-11-01</StartDate>
<EndDate>2010-11-04</EndDate>
<NoOfLeave>4</NoOfLeave>
<Category>SIC</Category>
</Absence>

<Absence>
<StartDate>2010-11-05</StartDate>
<EndDate>2010-11-05</EndDate>
<NoOfLeave>1</NoOfLeave>
<Category>TRN</Category>
</Absence>

<Absence>
<StartDate>2010-11-06</StartDate>
<EndDate>2010-11-06</EndDate>
<NoOfLeave>1</NoOfLeave>
<Category>SIC</Category>
</Absence>

</Absences>
</Student>
</Students>
</Root>

Thanks.

Reply With Quote
  #2  
Old February 17th, 2011, 11:17 PM
drgroove's Avatar
drgroove drgroove is offline
Moderator Emeritus
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Feb 2002
Location: Scottsdale, AZ
Posts: 7,174 drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level)drgroove User rank is General 17th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Days 23 h 48 m 33 sec
Reputation Power: 2131
Post whatever XSLT you've written so far, maybe we can help you work through any problems you're encountering.
__________________
DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Need ServiceNow consulting or ITIL process design? Connect with me on LinkedIn

Reply With Quote
  #3  
Old January 23rd, 2012, 01:54 AM
kristy85 kristy85 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 13 kristy85 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 49 m 7 sec
Reputation Power: 0
PDF to XML Conversion?

I want the details about of PDF to XML Conversion Steps?

web development services | Web development company

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML conversion

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap