CNET中国旗舰网站

ZDNet China | CNET科技资讯网 | 政府采购 | 行业网站联盟





 
标题: [转贴] xsl中,如何取得当前节点的路径?
mz89757053
版主
Rank: 7Rank: 7Rank: 7


UID 304999
精华 0
积分 6933
帖子 8295
威望 116
ZD币 1002 元
阅读权限 250
注册 2008-3-10
状态 离线
  楼主
发表于 2008-3-18 13:48  资料  个人空间  短消息  加为好友 
开发者在线

xsl中,如何取得当前节点的路径?

例如:   
  <Dir   name="test">   
          <Dir   name="test3">   
                  <File   name="SV400001.JPG"   hash="75588c4393644e2c6ff19cbcd67d0089"   size="638279"   last_update="2004-04-06   09:07:30"   thumbnail_hash="a5bdac722390154f87c8a0809a9f8558"   thumbnail_size="2348"   />   
          </Dir>   
                  <File   name="SV400001.JPG"   hash="75588c4393644e2c6ff19cbcd67d0089"   size="638279"   last_update="2004-04-06   09:07:30"   thumbnail_hash="a5bdac722390154f87c8a0809a9f8558"   thumbnail_size="2348"   />   
          </Dir>   
          <Dir   name="100SSCAMd">   
          <Dir   name="test2">   
   
  当我解释到第一个file的时候,我想知道当前file的路径,也就是:   
  /test/test3/SV400001.JPG   
  xslt语言可以定义变量,但是变量赋值之后不能修改,头痛啊。




顶部
 



当前时区 GMT+8, 现在时间是 2009-7-4 23:06

  Powered by Discuz! 5.5.0 © 2001-2007 Comsenz Inc.
Processed in 0.062325 second(s), 3/3 queries

清除 Cookies - 联系我们 - ZDNetChina中文社区 - 无图版