File: date.xsl

package info (click to toggle)
libxt-java 0.20020426a-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,760 kB
  • ctags: 2,854
  • sloc: java: 15,304; makefile: 396; xml: 39; sh: 5
file content (14 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:date="http://www.jclark.com/xt/java/java.util.Date">

<xsl:template match="/">
  <html>
    <xsl:if test="function-available('date:to-string') and function-available('date:new')">
      <p><xsl:value-of select="date:to-string(date:new())"/></p>
    </xsl:if>
  </html>
</xsl:template>

</xsl:stylesheet>