XSL:嵌套在RTF模板

问题描述 投票:0回答:2

我无法让我的RTF模板来接受我的第一个单元格嵌套的选择。我有:

<?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?>

我也试过没有冒号在陈述的时候,但不是一个错误,我只得到三分之二的50条记录。

xslt bi-publisher
2个回答
0
投票

我发现,如果工作,而不是一个嵌套。

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

0
投票

如果你原来的例子是,你实际上使用的代码,你缺少冒号。它应该是:

<?otherwise:?>

这会导致一个问题,但我不能说是否会造成你的问题,因为你没有指定你得到确切的错误。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.