我有一個數字參數numberOfFileds具有整數。 我需要創建numberOfFileds +1 XML節點結構如下:在xslt中動態創建XML標記名稱
<CONT_CUST_FLD_00X>
<xsl:value-of
select="./platformCore:customField[@internalId='custrecord_ebiz_container_custfield_00X']/platformCore:value"/>
</CONT_CUST_FLD_00X>
其中X - 從到numberOfFileds
因此,例如,當numberOfFileds號 = 3可預測的輸出必須如下:
<CONT_CUST_FLD_000>
<xsl:value-of
select="./platformCore:customField[@internalId='custrecord_ebiz_container_custfield_000']/platformCore:value"/>
</CONT_CUST_FLD_000>
<CONT_CUST_FLD_001>
<xsl:value-of
select="./platformCore:customField[@internalId='custrecord_ebiz_container_custfield_001']/platformCore:value"/>
</CONT_CUST_FLD_001>
<CONT_CUST_FLD_002>
<xsl:value-of
select="./platformCore:customField[@internalId='custrecord_ebiz_container_custfield_002']/platformCore:value"/>
</CONT_CUST_FLD_002>
<CONT_CUST_FLD_003>
<xsl:value-of
select="./platformCore:customField[@internalId='custrecord_ebiz_container_custfield_003']/platformCore:value"/>
</CONT_CUST_FLD_003>
請通過編寫適當的xslt模板來幫助我實現這一點。