Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xslt XSL:nested<;?选择?>;在RTF模板中_Xslt_Bi Publisher - Fatal编程技术网

Xslt XSL:nested<;?选择?>;在RTF模板中

Xslt XSL:nested<;?选择?>;在RTF模板中,xslt,bi-publisher,Xslt,Bi Publisher,我在让我的RTF模板接受第一个单元格中的嵌套choose时遇到问题。我有: <?choose?> <?when: FIRST_COLOR='Red'?> <?FIELD_VALUE?> <?end when?> <?otherwise?> <?choose?> <?when: SECOND_COLOR?> <?xdofx:FIELD_VALUE_2||

我在让我的RTF模板接受第一个单元格中的嵌套choose时遇到问题。我有:

<?choose?>
  <?when: FIRST_COLOR='Red'?>
    <?FIELD_VALUE?>
  <?end when?>
  <?otherwise?>
    <?choose?>
      <?when: SECOND_COLOR?>
        <?xdofx:FIELD_VALUE_2||'Z'?>
      <?end when?>
      <?otherwise?>
        <?FIELD_VALUE_2?>
      <?end otherwise?>
    <?end choose?>
  <?end otherwise?> 
<?end choose?>


我也尝试在WHE语句中不使用冒号,但没有出现错误,我只得到了50条记录中的两条。

我发现嵌套的if反而有效

<?xdofx:if FIRST_COLOR='Red' then
    FIELD_VALUE
  else
  if SECOND_COLOR!='' then
    FIELD_VALUE_2||'Z'
  else 
    FIELD_VALUE_2
end if?>

如果原始示例是您实际使用的代码,则缺少冒号。应该是:

这会引起问题,但我不能说它是否会引起您的问题,因为您没有指定您得到的确切错误