I have this value from xml and i have to create a combo box using xslt 1.0
this is the xml i get from database :
<CER_Pot>
<Record CIMtrek_CERPot="Bus Dev|Ser Del|Sol Del|?" />
</CER_Pot>
and this is how i create combo box in xslt :
<select size="1" style="width:60%;" name="CIMtrek_CI_CER_Pot"
id="CIMtrek_CI_CER_Pot">
<option value="0">Select Fund Pot</option>
<xsl:for-each select="//CER_Pot/Record">
<option>
<xsl:if
test="//Record/CIMtrek_CERPot/text()=@CIMtrek_CI_CER_Pot">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:attribute name="value"><xsl:value-of
select="@CIMtrek_CERPot" /></xsl:attribute>
<xsl:value-of select="@CIMtrek_CERPot" />
</option>
</xsl:for-each>
</select>
This gives me the combo box without any issue but i would like to have a combo box which will have the values splited based this |
delimiter so in this case it would be four rows
Bus Dev
Ser Del
Sol Del
?
How to do this in xslt
Please help me to get his done.
Best Regards