【发布时间】:2014-08-21 07:33:09
【问题描述】:
我使用的是 xslt 1.0。
我想将 A.xsl 导入 B.xsl。
我无法在 xsl:import 的 href 属性中使用相对路径。例如。路径是 c:/test/testdata/xsl/file/A.xsl
我厌倦了以下代码
<xsl:variable name="filePath" select="concat(Systemprop:getProperty('docRootPath'),'/xsl/file/A.xsl')" />
和
<xsl:import href="{concat(Systemprop:getProperty('docRootPath'),'/xsl/file/A.xsl')}">
其中 docrootPath = c:/test/testdata
但它给出了错误:元素类型“xsl:variable”必须后跟属性规范,“>”或“/>”。
但它给了我:样式表文件出现 IO 异常。请提出建议。
【问题讨论】:
标签: xslt