compute-string 要素

コンテンツモデル

compute-string:==EMPTY

属性

@expr

<element>

なし

説明

The <compute-string> element を使用すると、XTK 式に基づいて文字列を生成し、複数の値に基づいてインターフェイスに「built」ラベルを表示できます。

使用と使用のコンテキスト

いいえの場合 <compute-string> が定義されている場合、 <compute-string> 要素は、デフォルトで、スキーマのプライマリキーの値を使用して入力されます。

属性の説明

  • expr(文字列):XTK および/または Xpath 式

<compute-string expr="@label + Iif(@code='','', ' (' + [folder/@label] + ')')"/>
<compute-string expr="ToString([@centralCatalog-id]) + ',' + ToString([@localOrgUnit-id])" />

受信者に対して計算された文字列の結果:「John Doe (john.doe@aol.com)」:

<element name="recipient">
<compute-string expr="@lastName + ' ' + @firstName +' (' + @email + ')'
"/>
...
</element>

このページ