Subject: Re: substring question From: Phil Lanch <phil@xxxxxxxxxxxxxxx> Date: Tue, 14 Dec 1999 11:27:28 +0000 |
"Pettigrew, Nancy" wrote: > > XML: > <Consumer Comments="This is a test of the comments attribute."/> > > I am trying to display only the first 10 characters of the Comments > attribute shown above, but have not been successful using the substring > function - probably just a syntax problem, but I'm working with very little > documentation for xsl and am very new to it. Argh. > > Any suggestions? <xsl:template match="Consumer"> <xsl:value-of select="substring(@Comments,1,10)"/> </xsl:template> -- cheers phil "that monotonous state of the soul halfway between fulfillment and futility which comes with life in the country" --- Musil XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
substring question, Pettigrew, Nancy | Thread | xsl:message and recursion, Mark D. Anderson |
string-calculated entity reference, Mok | Date | Re: string-calculated entity refere, David Carlisle |
Month |