xsl-list
[Top] [All Lists]

Iterative variation of attributes

2004-03-03 05:14:13

 Hi! 

 I have a template like this... 

 <xsl:template name="dibujaEje">
  
  <line x1="16%" y1="85%" x2="16%" y2="15%"/>
  <line x1="17%" y1="85%" x2="17%" y2="15%"/>
   :    :             :                :
  <line x1="84%" y1="85%" x2="84%" y2="15%"/>
  <line x1="85%" y1="85%" x2="85%" y2="15%"/>

 </xsl:template>

 
 The attributes of the element line, x1 and x2 change from 16% to 85%...

 How i could simplify this and haven't to write all the lines?¿?

 Thanks! 

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



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