Advertisement

07.21.2004 at 06:36PM PDT, ID: 21067136
[x]
Attachment Details

[Help] XML transform with sorting

Asked by engtat in Extensible Markup Language (XML)

Tags:

Input.xml
<employees>
<employee id="1" name="Tom" salary="5000"></employee>
<employee id="2" name="Michelle" salary="4800"></employee>
<employee id="3" name="Samuel" salary="7000"></employee>
<employees>

My desired output (output.xml)
<staffs>
1. Samuel 7000
2. Tom 5000
3. Michelle 4800
</staffs>

How to write my XSL so that it transforms as I want? Note that the output is
<auto number increase><name><salary>
all located in one element node. The output requirement/format is fixed ! Start Free Trial
[+][-]07.21.2004 at 09:20PM PDT, ID: 11609237

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2004 at 10:49PM PDT, ID: 11609548

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.21.2004 at 11:21PM PDT, ID: 11609653

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2004 at 03:13AM PDT, ID: 11610708

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Extensible Markup Language (XML)
Tags: sort
Sign Up Now!
Solution Provided By: dualsoul
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11.17.2004 at 04:16AM PST, ID: 12603261

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.21.2004 at 02:58AM PST, ID: 12637573

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32