Retrieve XML file name using XSLT

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

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

4条回答
  •  走了就别回头了
    2021-01-14 05:42

    In XSLT 2.0, there are two relevant functions: base-uri() and document-uri().

    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.

提交回复
热议问题