Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Facing Problem while importing XSLT in ICS

edited Jun 24, 2019 9:14AM in Integration 3 comments

Content

Hi Team ,

Please follow below input and expected output .In that i am trying to repeat shipunit tag based on quantity field in json,

Input (JSON):

{
 "shipmentBookingContainer" :[{
      "shipmentBookingContainerId": "20605",
      "shipmentBookingId": "3656",
      "containerTypeId": "20GP",
      "commodityCode": "BR-223-90",
      "commodityName": "BR-223-90",
      "quantity":2,
      "containerType": "20GP",
      "weight": "31000",
      "containerSubType": "HAZ",
      "imcoClass": "CLASS1",
      "unCode": "UNCODE1",
      "refferTemperature": "0",
      "length": null,
      "breadth": null,
      "height":null,
      "ventilation": "0",
      "humidity": "65",
      "documents": "doc",
      "hazardous": true,
      "lengthUOM":"FT",
      "breadthUOM":"FT",
      "heightUOM":"FT",
      "weightUOM":"KG",
      "temperatureUOM": "Celcius"
    }]
}

Output(XML):-

<xsl:template match="/" xml:id="id_11">
       <nstrgmpr:publish xml:id="id_12">
         <otm:Transmission xml:id="id_16">
            <otm:TransmissionBody xml:id="id_17">
               <otm:GLogXMLElement xml:id="id_18">
                  <otm:TransOrder xml:id="id_19">

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!