Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Building XSLT Services | Creating an XSLT Service
 
Creating an XSLT Service
When you create an XSLT service, you are creating a style sheet containing the XSLT transformation rules.
*To create an XSLT service
1. In the Package Navigator view of Designer, select File > New > XSLT Service.
2. In the New XSLT Service dialog box, select the folder in which you want to save the service.
3. In the Element name field, type the name for the XSLT service. It would be helpful if you give the service a name that describes the type of transformation that the style sheet defines. Click Next.
4. Do one of the following to create the style sheet:
*To create an empty XSLT style sheet, select None. This is the default.
*To import the text of another XSLT file to use as a basis for this service’s style sheet, select XSLT file. Click Browse to locate and select the file whose contents you want to import.
*To use a template you want to use to initialize a default set of properties for the service, select Use template and select the appropriate template.
Note:Designer lists the templates that are defined on the Window > Preferences > XML > XSL > Templates page.
5. Click Finish.
Designer refreshes the Package Navigator view and displays the new service in the XSLT service editor.
Designer saves the style sheet as a text file using the naming convention serviceName.xsl. It is stored in the same directory as the service’s node.ndf file, that is, within the \ns directory of the package containing the service. For example, when you save the XSLT service com.example.inventory:convert, Designer names the style sheet file convert.xsl and stores it in the following directory: Integration Server_directory \instances\instance_name\packages\packageName\ ns\folderName\com\example\inventory\convert.
Important:
Do not rename the style sheet file. When an XSLT service is executed, it looks in the service directory for a style sheet called serviceName.xsl that contains instructions for transforming the XML data. If the appropriately named file is not in that location, the service creates an empty style sheet file, and ignores the renamed one. However, you can rename an XSLT service; Designer automatically renames the style sheet file to match the new service name.
You can specify service properties such as the run time settings, service retry, service auditing, and permissions using the Properties view. For more information, see Building Services.