XSL将Select的值与字符串值进行比较

时间:2017-08-02 20:05:40

标签: xslt

我是XSL的新手所以请耐心等待,但我如何将此xsl中的此值与字符串值进行比较?

<td style="text-align:center; width:5%;">
<xsl:value-of select="querydata[position()=19]/text"/>
</td>

我基本上想说:

if querydata[position()=19]/text = 'book' then
  'the value is book'
else
  'the value is NOT book'
end-if

0 个答案:

没有答案
相关问题