如何获取 XSLT 文件中的当前文件夹路径? [英] How do I get the current folder path within an XSLT file?

查看:31
本文介绍了如何获取 XSLT 文件中的当前文件夹路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 XSLT 文件中获取当前文件夹路径?

Is there a way to get the current folder path from within a XSLT file?

我需要它来定位其他 XML 和 XSLT 文件.我们有不同的客户文件夹,需要成功找到正确的文件.

I need it to locate other XML and XSLT files. We have different customer folders and will need to successfully find the correct files.

推荐答案

您可以使用 xsl:param.然后你需要确定从外部调用时当前的路径是什么;)

You can send it into the style-sheet from outside using xsl:param. Then you need to determine what the current path is when invoking the from the outside ;)

这篇关于如何获取 XSLT 文件中的当前文件夹路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆