使用 XSLT 从 XML 转换为 txt 文件时,如何在输出中显示文件创建日期?

How can I display File creation date in output when converting from XML to txt file using XSLT?

我试图在将 XML 文件转换为文本文件时在输出中显示文本文件的创建日期。有没有办法动态显示该信息?任何帮助将不胜感激。谢谢!

current-dateTime() 是您可以调用以查找日期时间为 运行 的函数。如果你想从文件系统中读取信息,那么你需要 http://expath.org/spec/file#pr.last-modified

你好像在找

<xsl:value-of select="current-dateTime()"/>