【发布时间】:2011-06-03 09:10:27
【问题描述】:
我正在尝试使用 xalan 的 ubuntu cli 版本:
Xalan version 1.10.0
Xerces version 2.8.0
我的问题是如何使用日期函数。我试过这样:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
<xsl:import href="date/date.xsl" />
<xsl:output method="text" indent="yes" />
date: <xsl:value-of select="date:date()" />
</xsl:stylesheet>
它给了我这个信息:
XSLException Type is: XalanXPathException
Message is: The function number 'http://exslt.org/dates-and-times:date' is not available. (file:///home/user/test.xsl, line x, column y)
我需要更改哪些文件或哪些内容才能使这些日期功能正常工作?
【问题讨论】: