开发者

Include the file name of the xsd schema I am processing with xslt

开发者 https://www.devze.com 2023-01-31 06:38 出处:网络
Hello I am generating Objective-C class files wit开发者_C百科h Saxon via XSLT and in a comment header would like to include information as to which xsd was used for their creation. Is there any way I

Hello I am generating Objective-C class files wit开发者_C百科h Saxon via XSLT and in a comment header would like to include information as to which xsd was used for their creation. Is there any way I can access the current filename during an xslt transformation?

Would be great if anyone had an idea...thanks!


Assuming XSLT/XPath 2.0 or later you can use document-uri(/) http://www.w3.org/TR/xpath-functions/#func-document-uri to find the URI of the input document and if you only want the file name then you could use tokenize(document-uri(/), '/')[last()].

0

精彩评论

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