xsl-list
[Top] [All Lists]

XSLT Question regarding converting XML to CSV

2005-11-28 04:58:59
Hi, I need to simulate converting my XML to CSV aswell
as to HTML.
it was decided that rowspan and callspan should be
accounted also in csv in the following way.
XML : 
<ROWS>
<ROW>
<USA>  <rowspan>3</rowspan>
       <colspan>2</colspan>
</USA>
<BOS>  <colspan>2</colspan>
</BOS>
</ROW>
<ROW>
<NY>  <colspan>2</colspan>
</NY>
</ROW>
<ROW>
<LA>  <colspan>2</colspan>
</LA>
</ROW>
<ROW>
<CAN>  <rowspan>2</rowspan>
       <colspan>2</colspan>
</CAN>
<TOR>  <colspan>2</colspan>
</TOR>
</ROW>
<ROW>
<VAN>  <colspan>2</colspan>
</VAN>
</ROW>
</ROWS>

The output CSV file should look something like:

USA,,BOS,,
,,NY,,
,,LA,,
CAN,,TOR
,,VAN

How can I write my XSLT?


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>