哇哇!怎么设置xsl的相对路径?
现有xml目录(用http://localhost/xml/访问)
在其下创建一index.xml
语句如下:
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/xsl" href="skin/default/index.xsl"?>
<首页 />
skin/default/index.xsl为样式文件
打开http://localhost/xml/index.xml可以访问,就是图片路径不对
例如在index.xsl里边一个图片标签:
<img src="images/navbar.gif" border="0" alt="" />
结果在打开index.xml的时候,在该图片上按右键->属性
发现该图片的路径为:http://localhost/images/navbar.gif
他是images/navbar.gif相对于localhost(根目录)的结果啊...
现在的问题是:
怎么设置得路径说相对的是xml目录?