XML/XSLT stylesheet/current time — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:26, 26 мая 2010
Get the current time with function current-time()
<source lang="xml">
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body>
Date and Time
The current time is: <xsl:value-of select="current-time()" />
</body> </html> </xsl:template>
</xsl:stylesheet> Output: <html>
<body>
Date and Time
The current time is: 15:57:39.796-08:00
</body>
</html>
</source>