AnsweredAssumed Answered

XSLT Transformation

Question asked by rajasekhar33 on Sep 28, 2017
Latest reply on Oct 3, 2017 by Mark_HE

Hi All,

 

        I am trying to use XSLT transformation assertion to make my scenario works but since i am not familiar with XSLT i am getting issues. Please find my scenario below and solve my problem.

 

Scenario:  I have created the context variable and assigned some XML/JSON data. I have intentionally removed some data which i want pass thru XSLT.Could you please let me know how can i achieve this. Please find the data below.

 

<school> 

     <class>

         <grade>first</grade>

         <age>3</age>

         <id>101</id>

         <contact>41864</contact>

    </class>

     <class>

         <grade>first</grade>

         <age>3</age>

         <id>101</id>

         <contact>null</contact>

    </class>

</school>      

--------

--------

Like this i have 20 rows data. Now if you observe I dont have data for contact so i want to pass some number anything whenever there is no data for particular this.

 

Hope my scenario is clear.

 

Thanks&Regards

Rajasekhar 

Outcomes