stk:time.format-date(template)

element()?stk:time.format-date
  1. xs:stringdate
  2. xs:stringlanguage
  3. xs:string?picture
  4. xs:booleaninclude-time
  5. xs:string*attr

Examples

Input

<xsl:call-template name="stk:time.format-date">
    <xsl:with-param name="date" select="@timestamp"/>
</xsl:call-template>

Result

<time datetime="2014-02-21">
  <span class="date">21/02/2014</span>
</time>

Input

<xsl:call-template name="stk:time.format-date">
    <xsl:with-param name="date" select="@timestamp"/>
    <xsl:with-param name="include-time" select="true()"/>
</xsl:call-template>

Result

<time datetime="2014-02-21T09:07">
  <span class="date">21/02/2014</span> 
  <span class="time">09:07</span>
</time>

Parameters

date
Type
xs:string
language
Type
xs:string
Default
$stk:language
picture
Type
xs:string?
include-time
Type
xs:boolean
Default
false()
attr
Custom attributes. Format: 'foo=bar'. Multiple attributes: 'foo=bar', 'fish=salmon'
Type
xs:string*