我尝试将当前日期插入到我的表单中,但是我收到一个错误:“current-date()是一个未知的XSLT函数”。
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0"
xmlns:uf="http://www.xxx.pl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" >
<xsl:include href="../x/xxx.xslt"/>
<xsl:include href="../xx/xxxx.xslt"/>
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:variable name="line-height" select="18"/>
<xsl:template match="/">
<fo:root>
<xsl:call-template name="layout-master-set">
<xsl:with-param name="margin_TB" select="'0cm'"/>
<xsl:with-param name="margin_LR" select="'0cm'"/>
<xsl:with-param name="header_extent" select="'5.25cm'"/>
<xsl:with-param name="footer_extent" select="'5.25cm'"/>
</xsl:call-template>
<fo:page-sequence master-reference="default">
<fo:flow flow-name="body" line-height="12.0pt" font-family="Trebuchet MS" font-size="10.0pt">
<fo:block text-align-last="justify">
<fo:inline font-weight="normal">city, <xsl:value-of select="current-date()"/></fo:inline>
</fo:block>
任何帮助?