[xsl] XSLT: Taking Value of One Attribute and Smearing it Across multiple times

Subject: [xsl] XSLT: Taking Value of One Attribute and Smearing it Across multiple times
From: "Rex Rex" <perlicious@xxxxxxxxx>
Date: Fri, 4 May 2007 08:18:55 -0400
I am new to XSLT. I have this problem to resolve.

For a given XML tree like this, where a single value is specified for
a range of hours -- from hour 1 to end hour 10, I would like to
explode this single value ten times.

i.e., for a source XML like this,

<?xml version="1.0"?>
<offers>
 <fcst start_hr="1" end_hr="10" value="100"/>
</offers>

I need an output like this... (explode the value of 100 from hr=1 to
hr=10, ten times.)

100,100,100,100,100,100,100,100,100,100

Current Thread