S
Sandy
Hi,
I have following XML. I want to write an XSL file which can take the first
and second <NAME> elements and put them in the output (which is a csv file
as shown below).
But i am not able to find how to do this using XSLT transformations.
Any help is greatly appreciated.
Input XML file
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml" href="test.xsl"?>
<LIST>
<NAME>
<FIRST>first1</FIRST>
<LAST>last1</LAST>
</NAME>
<NAME>
<FIRST>first2</FIRST>
<LAST>last2</LAST>
</NAME>
<NAME>
<FIRST>first3</FIRST>
<LAST>last3</LAST>
</NAME>
<NAME>
<FIRST>first4</FIRST>
<LAST>last4</LAST>
</NAME>
................
..................... (n number of NAME's)
</LIST>
*****************************************************************
Output
first1,Last1
first2,last2
I have following XML. I want to write an XSL file which can take the first
and second <NAME> elements and put them in the output (which is a csv file
as shown below).
But i am not able to find how to do this using XSLT transformations.
Any help is greatly appreciated.
Input XML file
<?xml version="1.0"?>
<?xml-stylesheet type="text/xml" href="test.xsl"?>
<LIST>
<NAME>
<FIRST>first1</FIRST>
<LAST>last1</LAST>
</NAME>
<NAME>
<FIRST>first2</FIRST>
<LAST>last2</LAST>
</NAME>
<NAME>
<FIRST>first3</FIRST>
<LAST>last3</LAST>
</NAME>
<NAME>
<FIRST>first4</FIRST>
<LAST>last4</LAST>
</NAME>
................
..................... (n number of NAME's)
</LIST>
*****************************************************************
Output
first1,Last1
first2,last2