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语言可以定义变量,但是变量赋值之后不能修改,头痛啊。
|