XSLT logic of hierarhy levels(Conditional Sequence number)

vencal

New Member
Any one please look into the below complex logic over in xslt.Thanks in advance.\[code\] input: <OutputParameters> <OUT_SHIPMENT_TBL> <OUT_SHIPMENT_TBL_ITEM> <SLevel1>1</SLevel1> <SLevel1>S</SLevel1> <DELIVERY_ID>2334356776</DELIVERY_ID> <ORDER_SHIP_CODE_EXT>3467</ORDER_SHIP_CODE_EXT> <CUSTOMER_NUMBER>4838</CUSTOMER_NUMBER> <OEH_POSTAL_CODE xsi:nil="true"/> <OEH_COUNTRY xsi:nil="true"/> <ORDER_TBL_TYPE> <ORDER_TBL_TYPE_ITEM> <OLevel1>2333</OLevel1> <OLevel2>344</OLevel2> <OLevel3>O</OLevel3> <PURCHASE_ORDER_NUMBER>95678</PURCHASE_ORDER_NUMBER> <TOTAL_ORDER_GROSSWEIGHT>345</TOTAL_ORDER_GROSSWEIGHT> <TOTAL_ORDER_SHIPQTY>32</TOTAL_ORDER_SHIPQTY> <ORDER_LINES_TBL_TYPE> <ORDER_LINES_TBL_TYPE_ITEM> <!-- unbounded --> <ILevel1>2333</ILevel1> <ILevel2>2333</ILevel2> <ILevel3>2333</ILevel3> <PALLET_NUMBER>4546</PALLET_NUMBER> <CARTON_NUMBER>344235</CARTON_NUMBER> <WEB_TRANSACTION_ID>346788</WEB_TRANSACTION_ID> <FREIGHT_TERMS_CODE_INT>243546</FREIGHT_TERMS_CODE_INT> <VENDOR_NUM>344677</VENDOR_NUM> <ITEM>50116</ITEM> <CROSS_REFERENCE_UPC>034138102008</CROSS_REFERENCE_UPC> </ORDER_LINES_TBL_TYPE_ITEM> <ORDER_LINES_TBL_TYPE_ITEM> <ILevel1>2333</ILevel1> <ILevel2>2333</ILevel2> <ILevel3>2333</ILevel3> <PALLET_NUMBER>4546</PALLET_NUMBER> <CARTON_NUMBER>344235</CARTON_NUMBER> <WEB_TRANSACTION_ID>346788</WEB_TRANSACTION_ID> <FREIGHT_TERMS_CODE_INT>243546</FREIGHT_TERMS_CODE_INT> <VENDOR_NUM>344677</VENDOR_NUM> <ITEM>50116</ITEM> <CROSS_REFERENCE_UPC>034138102008</CROSS_REFERENCE_UPC> </ORDER_LINES_TBL_TYPE_ITEM> </ORDER_LINES_TBL_TYPE> </ORDER_TBL_TYPE_ITEM> <!-- 2 nd Order --> </ORDER_TBL_TYPE> </OUT_SHIPMENT_TBL_ITEM> </OUT_SHIPMENT_TBL> </OutputParameters>\[/code\]The following cases we should consider to produce the hierarchy levels.There should be multiple orders and OrderLine Items.case1;for each \[code\]<ORDER_LINES_TBL_TYPE_ITEM>\[/code\] there is 3 levels are there but two of them are condition based 1)If previous UniqueID != current UniqueID and PALLET_NUMBER!=NULL true--> Tlevel ll come. 2) If previous UniqueID != current UniqueID and PALLET_NUMBER =NULL then-->Plevel ll come 3)default I Level
 
Back
Top