简体   繁体   中英

How to get current document uri in XSLT?

如何在XSLT中访问当前的xml文档uri?

This cannot be done in pure XSLT 1.0 without writing your own extension function.

In XSLT 2.0 (or XPath 2.0) one can use the standard XPath 2.0 function document-uri()

Short answer: No :)

You can't. The namespace URI is conceptually part of the element name and you can't use xsl:copy if you want to change the name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM