Get URL of XML page from within XSL [closed]
How do I get the URL of the XML page from within the XSL, if it is not defined in the XML?
Within an XSLT 2.0 stylesheet you may be able to use the standard XPath 2.x functions base-uri() and document-uri()
XSLT doesn't have a mechanism in and of itself to fetch the URL which it was retrieved from. However You could try using Javascript to pass the URL as a parameter to the stylesheet. Much like what this guy does.
精彩评论