When using data services, the user may come across the need XSLT transformation is used in WSO2 DSS to transform the result as they wish. This is handled in WSO2 Data Services Server using XSLT Transformation, where the of an already defined operation into a different result. The user can define the transformation in xslt and provide the url of the transformation file in the result element.
...
The sample data service (ExcelSampleService), which we use for this demonstrations demonstration consists of two operations:
- getProducts - Lists all the products that are manufactured in the company, each result record will contain . Each record in the result contains "ID" and "Name" fields.
- getProductClassifications - Lists all the products along with the classifications, which contains the two result . The result will consist of two records, "Name" and "classification". Note that this operation's actual output However, note that because of the xslt transformation, the actual output of this operation has changed to "product-Name" and "product-classification" because of the xslt transformation.
See Data Services and Resources for a definition of data services and operations.
Building the sample
The sample data service ,named ExcelSampleService should be deployed using the instructions in Samples Setup.
...