xsl-list
[Top] [All Lists]

RE: Auto generation of attribute values and content

2003-04-02 02:27:07
I have the following code in my xsl file. 

<row font-bold='true' alignment-horizontal='center'>
   <cell defined-name="month1">Jan</cell>
   <cell defined-name="month2">Feb</cell>
   <cell defined-name="month3">Mar</cell>
   <cell defined-name="month4">Q1</cell>
   <cell defined-name="month5>>Apr</cell>
   <cell defined-name="month6">May</cell>
   <cell defined-name="month7">Jun</cell>
   <cell defined-name="month8">Q2</cell>
   <cell defined-name="month9">Jul</cell>
   <cell defined-name="month10">Aug</cell>
   <cell defined-name="month11">Sep</cell>
   <cell defined-name="month12">Q3</cell>
   <cell defined-name="month13">Oct</cell>
   <cell defined-name="month14">Nov</cell>
   <cell defined-name="month15">Dec</cell>
   <cell defined-name="month16">Q4</cell>
   </row>

I would like to do a for loop or whatever possible
ways to auto-geneate the content.

Why? Is the above output going to vary on different occasions? In what
ways may it vary? What input does it depend on?

If it isn't going to vary, then spelling it out as you have done above
is probably as good as anything.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



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