I want productType
nodes to be combined and values to be concatenated.
I have sample input XML as below.
<Orders>
<fromDate>Date</fromDate>
<toDate>Date</toDate>
<soldTo>String</soldTo>
<shipTo>String</shipTo>
<endUser>String</endUser>
<customerPO>String</customerPO>
<orderId>String</orderId>
<consigneePO>String</consigneePO>
<productType>
<productTypeValue>String1</productTypeValue>
</productType>
<productType>
<productTypeValue>String2</productTypeValue>
</productType>
<orderStatus>
<orderStatusValue>String3</orderStatusValue>
</orderStatus>
<orderStatus>
<orderStatusValue>String4</orderStatusValue>
</orderStatus>
<orderLineItemStatus>
<orderLineItemStatusValue>String5</orderLineItemStatusValue>
</orderLineItemStatus>
<orderLineItemStatus>
<orderLineItemStatusValue>String6</orderLineItemStatusValue>
</orderLineItemStatus>
</Orders>
Expected output:
<Orders>
<fromDate>Date</fromDate>
<toDate>Date</toDate>
<soldTo>String</soldTo>
<shipTo>String</shipTo>
<endUser>String</endUser>
<customerPO>String</customerPO>
<orderId>String</orderId>
<consigneePO>String</consigneePO>
<productType>
<productTypeValue>String1,String2</productTypeValue>
</productType>
<orderStatus>
<orderStatusValue>String3,String4</orderStatusValue>
</orderStatus>
<orderLineItemStatus>
<orderLineItemStatusValue>String5,String6</orderLineItemStatusValue>
</orderLineItemStatus>
</Orders>
I get your desired result given your input set with the XSLT3 implementation.