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]

Re: Selecting a certain amount of characters with XSL



> I want to select the total amount from Text tag..

oh sorry, this better?

 <xsl:variable name="x">
  <xsl:value-of select="TextItemText"/>
 </xsl:variable>
  <xsl:value-of select="substring($x,1,1000)"/>


you'll need to modify the select="TextItemText" to pick up all the text
from whichever node you evaluate this expression.

the string value of the result tree template is the concatenation of all
the element content, and then you can take the first 1000 characters
from that.

David


 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]