Retrieve XML file name using XSLT

前端 未结 4 1291
轮回少年
轮回少年 2021-01-14 05:01

How can I retrieve the XML source file name using XSL 1.0 code?

4条回答
  •  悲&欢浪女
    2021-01-14 05:36

    With Xalan there is the following, non-official function :

    
    

    I use it on a transformation of a local file and it gives me the absolute path of the XML file being transformed. I found that function browsing the Xalan code, it is part of the class FuncDoclocation.

提交回复
热议问题