关于 xslt 选择属性值输出的问题
<root act= "post ">
<group N= "1 ">
<item N= "1 " get= "xxx " post= "yyy "/>
<item N= "2 " get= "zzz " post= "aaa "/>
<item N= "3 " get= "ccc " post= "bbb "/>
</group>
<group N= "2 ">
<item N= "1 " get= "zzxxx " post= "xxyyy "/>
<item N= "2 " get= "ffzzz " post= "xxaaa "/>
<item N= "3 " get= "eeccc " post= "eebbb "/>
</group>
</root>
现在有这么一个 xml 信息
我用xslt声明了几个变量
<xsl:variable name= "act " select= "//root/@act "/>
我想取得某一节点的某个属性的值怎么写
<xsl:variable name= "act " select= "//root/group[@N=2]/item[@N=3]/{$act} " />
这里,我想取得的属性,是act值的内容,比如 $act 为 post 就取 post的值, $act 为 get 就取 get 的值
[解决办法]
那就好
[解决办法]
jfO.o