This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

finite loop, incrementing, or...?


Hi all, 

Someone asked me this, but I couldn't think of a way to do it: 

In an XML document, a start year and end year are given. E.g.
<?xml version="1.0"?>

<tscmeta>
  <frequency code="ANNUAL" />
  <date year="1994" month="1" day="1" />
  <date year="1998" month="12" day="31" />
</tscmeta>

How can I use XSLT to output a table with columns for 1994 through 1998? 
Desired output: 
<table><tr><td>1994</td><td>1995</td><td>1996</td><td>1997</td><td>1998</td>
</tr></table>

Any solutions? 

Linda


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]