how to assign values to empty element tags in using xslt

Discussion in 'Programming' started by black77, Aug 24, 2010.

  1. #1
    Hi how to convert the following xml

    <LIST_R7P1_1>
    <R7P1_1>
    <ORIG_EXP_PRE_CONV />
    <EXP_AFT_CONV />
    <GUARANTEE_AMOUNT />
    <CREDIT_DER />
    </R7P1_1>
    </LIST_R7P1_1>

    to the following format using xslt transformation

    <LIST_R7P1_1>
    <R7P1_1>
    <ORIG_EXP_PRE_CONV >0<ORIG_EXP_PRE_CONV />
    <EXP_AFT_CONV >0<EXP_AFT_CONV />
    <GUARANTEE_AMOUNT >0<GUARANTEE_AMOUNT />
    <CREDIT_DER >0<CREDIT_DER />
    </R7P1_1>
    </LIST_R7P1_1>
     
    black77, Aug 24, 2010 IP