Subject: Re: Selecting a certain amount of characters with XSL From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 8 Mar 2000 15:00:10 GMT |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Selecting a certain amount of c, Regine Vergon | Thread | Re: Selecting a certain amount of c, RSuiter |
RE: exclude-result-prefixes Editors, Pawson, David | Date | XSLT/XPath Book Reviewer Sought, G. Ken Holman |
Month |