最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

XSLT:如何在“匹配"中表示 OR属性?

SEO心得admin30浏览0评论
本文介绍了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" >

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

发布评论

评论列表(0)

  1. 暂无评论