xslt - 如何在 xsl 中打印任何变量值。bcoz 我们无法调试 xsl
问题描述
<xsl:if test="efile_format = 'PDF' or efile_format = 'Docume`efile_format = 'PDF' or efile_format = 'Document' ">
我想检查 efile_format 的值。因为当我尝试工作时它总是失败但尝试遵循 if 条件仅用于查看条件是否影响或不影响
<xsl:if test="1">
解决方案
我假设您缺少第二个或条件:
<xsl:if test="efile_format = 'PDF' or efile_format = 'Docume`efile_format = 'PDF' or efile_format = 'Document' ">
更正的语法可能类似于以下之一:
<xsl:if test="efile_format = 'PDF' or efile_format = 'Docume' or efile_format = 'PDF' or efile_format = 'Document' ">
或者
<xsl:if test="efile_format[(. = 'PDF') or (. = 'Document')]">
或者
<xsl:if test="efile_format=('PDF','Document')">
推荐阅读
- angular - *ngIf 通过字符串变量赋值
- python - 在纯 Python 中转置“memoryview”
- python - TensorFlow Keras:指标不好,分类没有改进。我错过了什么吗?
- javascript - If else if 缩短
- java - 如何仅对 jTable 的几列进行排序
- java - EditText 中的大写特定单词
- ibm-mq - MQHeaderList 大小为 0,但读取特定 MQRFH2 有效
- python - 从数组索引创建新数组
- python - 如何使用 Flask 添加新的 html 项目
- javascript - 如何在不立即执行“onclick”功能的情况下在我的文本区域中有“必需”?