XSLT:如何在“匹配"中表示 OR属性? [英] XSLT: How to represent OR in a "match" attribute?

查看:31
本文介绍了XSLT:如何在“匹配"中表示 OR属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对匹配名称A"或B"的元素执行一系列操作.我正在考虑下面这样的事情,但它不起作用.

I want to perform a series of operations on elements that matched the name "A" or "B". I'm thinking of something like this below, but it doesn't work.

<xsl:template match= " 'A' or 'B'" >
     <!-- whatever I want to do here -->
</xsl:template>

找不到合适的 XSLT 语言参考.请帮忙!谢谢!!

Couldn't find the appropriate XSLT language reference for it. Please help! Thanks!!

推荐答案

试试这个:

<xsl:template match= "A | B" >

有关详细信息,请参阅此页面.

这篇关于XSLT:如何在“匹配"中表示 OR属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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