xsl-list
[Top] [All Lists]

[xsl] How to generate multiple rows based on sub element

2009-09-24 11:10:35
Hi there, 
        I'm new to the world of XSLT and would need your inputs to map below 
explained scenario. 
We are using XSLT 1.0 and have to map XML to a CSV file, the input looks like 
this 
<Message> 
 <Work>Contract</Work> 
 <Timesheet>Approved</Timesheet> 
 <Days> 
        <Mon>8</Mon> 
        <Tues>7</Tues> 
        <Fri>9</Fri> 
 </Days> 
</Message> 
In the output depending on the days worked we need to generate multiple rows. 
ie the XSLT logic for all other fields will remain the same (Work, Timesheet 
etc), the logic will change only for field 'Days'...any inputs on how to 
accomplish this in XSLT
Expected Output: 
------------------------- 
Work,   Timesheet,      Days,  Hours 
Contract, Approved,     Mon,   8 
Contract, Approved,     Tues,  7 
Contract, Approved,     Fri,     9 

Many Thanks 
Abhilash 


      Keep up with people you care about with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/connectmore

--~------------------------------------------------------------------
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>