Created
June 18, 2014 13:44
-
-
Save c01nd01r/940658c2ef7a2df92a2e to your computer and use it in GitHub Desktop.
<time> xslt в UMI.CMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template name="time" > | |
<xsl:param name="unix-timestamp"/> | |
<time datetime="{document(concat('udata://system/convertDate/', $unix-timestamp ,'/(Y-m-d)'))/udata}"> | |
<xsl:value-of select="document(concat('udata://system/convertDate/', $unix-timestamp ,'/(d.m.Y)'))/udata"/> | |
</time> | |
</xsl:template> | |
<!-- Вызов шаблона--> | |
<xsl:call-template name="time"> | |
<xsl:with-param select="//property[@name='publish_time']/value/@unix-timestamp" name="unix-timestamp"/> | |
</xsl:call-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment