Subject: RE: Using substring call with for-each/apply templates
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 31 Oct 2002 23:28:07 -0000
|
> Subject: Using substring call with for-each/apply templates
>
>
> I have the following code in my xslt;
>
> <td>
> <xsl:for-each select="RFQLastDate">
> <xsl:apply-templates/>
> </xsl:for-each>
> </td>
>
> I would like to apply the substring function to take the first 11
> characters of the contents of "RFQLastDate". How do I proceed?
>
Add:
<xsl:template match="RFQLastDate">
<xsl:value-of select="substring(., 1, 11)"/>
</xsl:template>
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|