Subject: [xsl] 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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list