[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT Table defination Question
Use a recursive template:
<xsl:template match="element-with-text"> <xsl:call-template name="chars"> <xsl:with-param name="string" select="normalize-space()"/> </xsl:call-template> </xsl:template> <xsl:template name="chars"> <xsl:param name="string" select="''"/> <xsl:param name="number-of-chars" select="20"/> <xsl:value-of select="substring($string, 1, 20)"/>-<br/> <xsl:if test="string-length($string) > 20"> <xsl:call-template name="chars"> <xsl:with-param name="string" select="substring($string, 21)"/> </xsl:call-template> </xsl:if> </xsl:template> (untested) Regards, Joerg Mehul Kishor Mehta wrote: Hello, XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|