Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How To Create the XSLT with the Grouping

$
0
0

Hi Team

Currently i have a requirement write a XSLT map for transform one xml format to on another format,  have requirement is grouping Order no on the  JS_UniqueConsignRef, Could you please Support to me to complete that. for your reference here with attached sample input file  and expected Sample output.

Input XML

<Booking odata.context="https://logic-apis-southeastasia.azure-apim.net/apim/sql/076c2af418044a429486d5c21815d600/$metadata#datasets('default%2Cdefault')/tables('%5Bdbo%5D.%5BShippingXMLTable_ForOneTesting%5D')/items"><value odata.etag=""><ItemInternalId>2983e1fd-940e-4554-b1e4-293c2cf3a801</ItemInternalId><JS_UniqueConsignRef>S17119207972</JS_UniqueConsignRef><OrderNo>BY-91959</OrderNo><BuyerCode>DKVEJ</BuyerCode><SupplierCode>SRESANTUP1</SupplierCode><ConfirmNo></ConfirmNo><InvoiceNo>SSE/0101</InvoiceNo></value><value odata.etag=""><ItemInternalId>00bb143f-a928-463e-831a-c03ef9ca71ee</ItemInternalId><JS_UniqueConsignRef>S17119207972</JS_UniqueConsignRef><OrderNo>BY-91967</OrderNo><BuyerCode>DKVEJ</BuyerCode><SupplierCode>SRESANTUP1</SupplierCode><ConfirmNo></ConfirmNo><InvoiceNo>SSE/0101</InvoiceNo></value></Booking>

Expected Sample Output

<value odata.etag=""><JS_UniqueConsignRef>S17119207972</JS_UniqueConsignRef><JS_IsForwardRegistered>true</JS_IsForwardRegistered><OrderCollection><OrderNo>BY-91959</OrderNo><OrderNo>BY-91967</OrderNo></OrderCollection></value>


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>