以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 最新动态 & 业界新闻 』  (http://bbs.xml.org.cn/list.asp?boardid=35)
----  在xsl中,如何把一个图片的绝对路径转化成html知道的相对路径  (http://bbs.xml.org.cn/dispbbs.asp?boardid=35&rootid=&id=26226)


--  作者:freflying
--  发布时间:1/7/2006 5:01:00 PM

--  在xsl中,如何把一个图片的绝对路径转化成html知道的相对路径
问题详细描述:
现有一个xml文件的部分内容为
<tcase>
    <picture>e:\pic\picture1</picture>
    <picture>e:\pic\picture2</picture>
    .....
</tcase>
我在xsl中怎么做,才能把这些图片添加到html网页的一个表格项中呢?表格为
<table>
   <td>name</td>
   <td>status</td>
   <td>discription</td>
    <td>picture</td>
</table>
要求把上面所有的picture填到picture中,假设有三个picture,则表中数据为
picture1<href=?>picture2<href=?>
该怎么做,我都试了很多,但是出问题,特向高手请教!!!!!!!!!
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms