計算字串元素

內容模型

compute-string:==EMPTY

屬性

@expr

父母

<element>

兒童

說明

<compute-string> 元素使您能夠基於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@aol.com)」:

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

本頁內容