these are aaronland.infoxsl tools

print (n) times

This stylesheet defines a single template for printing a string (n) times. An optional separator string may also be defined which, if present, will be printed (n -1) times.

The current version of the print (n) times stylesheet is 1.0.

released April 17, 2003



 # prints 'ook ook ook'

 <xsl:include href = "/path/to/print-n-times.xsl" />

 <xsl:call-template name = "PrintNTimes">
  <xsl:with-param name = "string">
  <xsl:with-param name = "count">3</xsl:with-param>
  <xsl:with-param name = "spacer">
   <xsl:text> </xsl:text>


Copyright © 2003 Aaron Straup Cope. All Rights Reserved.

Permission to use, copy, modify and distribute this stylesheet and its acompanying documentation for any purpose and without fee is hereby granted in perpetuity, provided that the above copyright notice and this paragraph appear in all copies. The copyright holders make no representation about the suitability of the stylesheet for any purpose.

It is provided "as is" without expressed or implied warranty.