定位相對文件路徑XSL進口使用率我有一個簡單的XSL文件,它看起來像:在Windows
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="html/docbook.xsl"/>
</xsl:stylesheet>
我有一個位於磁盤(不是網絡)上的文件夾中的XSL文件。這是相對路徑到我的XSL文件(以上)爲:
..\..\..\Dependencies\XSL\xsl\htmlhelp\htmlhelp.xsl
<xsl:import href="..\..\..\Dependencies\XSL\xsl\htmlhelp\htmlhelp.xsl"/>
或
<xsl:import href="../../../Dependencies/XSL/xsl/htmlhelp/htmlhelp.xsl"/>
似乎並沒有工作(我得到的 - 無法找到文件 - xslproc工具的錯誤。)
在XSL中編寫相對路徑的正確方式是什麼:import?
由於提前,
保羅