以下のコードは Word BI Publisher テンプレートで機能するはずですが、そうではありません。BI Publisher Template Viewer アプリケーションを使用してテストすると、Duplicate variable 'branch' definition.
If only the matching <?when: ...?>
block should be execute, how is the variable defined multiple times? と表示されます。
他のプログラミング言語の経験はありますが、XML/XSL/BIP などは初めてです。誰かが以下のコードに光を当てることができますか?
ありがとう!
<?variable:payco; xdoxslt:trim(Remit_to_Name_ID445)?>
<?choose:?>
<?when: $payco=”Company1”?>
<?variable@begin:branch;'CO1'?>
<?end when?>
<?when: $payco=’Company2’?>
<?variable@begin:branch;'CO2'?>
<?end when?>
<?when: $payco=’Company3’?>
<?variable@begin:branch;'CO3'?>
<?end when?>
<?end choose?>