开发者

Get URL of XML page from within XSL [closed]

It's difficult to tell what is being开发者_JAVA技巧 asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜