有没有更好的方法来过滤xslt中的xml? [英] Is there any better way to filter xml in xslt ?

查看:64
本文介绍了有没有更好的方法来过滤xslt中的xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

<xsl:for-each select="Data/data_table">



如果我使用foreach我会循环更多谢谢100k是否有更好的方法来填充它?




if i use foreach i will loop for more thank 100k is there better way to fillter it ?

XML

<Data>
<data_table>
<type>X</types>
<name>Name</name>
</data_table>
</Data>





i只想循环到所有类型X.



i just want to loop only to all type X.

推荐答案

尝试:

Try:
<xsl:for-each select="Data/data_table[type = 'X']">


这篇关于有没有更好的方法来过滤xslt中的xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆