使用 XSLT 检索 XML 文件名 [英] Retrieve XML file name using XSLT
本文介绍了使用 XSLT 检索 XML 文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 XSL 1.0 代码检索 XML 源文件名?
How can I retrieve the XML source file name using XSL 1.0 code?
推荐答案
在 XSLT 2.0 中,有两个相关的函数:base-uri() 和 document-uri().
In XSLT 2.0, there are two relevant functions: base-uri() and document-uri().
在 XSLT 1.0 中,您必须将 URL 或文件名作为参数传递给样式表,除非处理器为此提供扩展功能.
In XSLT 1.0, you have to pass the URL or filename as a parameter to the stylesheet, unless the processor offers extension functions for the purpose.
这篇关于使用 XSLT 检索 XML 文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文