Oops, I forgot a with-param in the template call:
<xsl:call-template name="format_date">
<xsl:with-param name="DateTime" select="select statement where to find your source date"/>
<!-- setting select to "1" creates long date -->
<xsl:with-param name="long" select="'1'"/>
</xsl:call-template>
Main Topics
Browse All Topics





by: kmartin7Posted on 2009-09-24 at 13:46:18ID: 25417692
Hi d,
We created a named template and just call to it whenever we need it. It is posted below.
To call it, do something like the following:
<xsl:call-template name="format_date">
<!-- setting select to "1" creates long date -->
<xsl:with-param name="long" select="'1'"/>
</xsl:call-template>
HTH
Select allOpen in new window