XSLT Sample for Change Structure of XML File?

H

Homer

Hi All,

I have following XML File:

<Header></Header>
<Category></Category>
<Item1></Item1>
<Item2></Item2>
<Category></Category>
<Item3></Item3>


Could someone please send me an example what is the XSLT text to
convert it to:

<Header>
<Category>
<Item1></Item1>
<Item2></Item2>
</Category>
<Category>
<Item3></Item3>
</Category>
</Header>



Thanks is advance,

Homer
 
A

Alex Hunsley

Homer said:
Hi All,

I have following XML File:

<Header></Header>
<Category></Category>
<Item1></Item1>
<Item2></Item2>
<Category></Category>
<Item3></Item3>


Could someone please send me an example what is the XSLT text to
convert it to:

<Header>
<Category>
<Item1></Item1>
<Item2></Item2>
</Category>
<Category>
<Item3></Item3>
</Category>
</Header>

Why not google for XSLT tutorials (there's plenty) - what you are trying
to do is not too hard. Then come back and ask if you have problems (and
show what you've done so far!)
 
J

John Gagon

Alex said:
Why not ..."google" for ...


*sigh* another victim of branding. ;-) </tic>

I'm wondering if "search" is not clear enough in the context.
TBP, No one is going to think it would mean getting out a flashlight
and bloodhounds or any other meaning that comes easily to mind.

But I suppose with a certain audience, it's might be less confusing.



John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top