Procedure - Cloud - 8.0

XML

Version
Cloud
8.0
Language
English (United States)
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > XML components
Data Quality and Preparation > Third-party systems > XML components
Design and Development > Third-party systems > XML components

Procedure

  1. Drop a tFileInputRaw component, a tXSLT component, and a tLogRow component from the Palette to the design workspace.
  2. Connect the tFileInputRaw component and the tXSLT component using a Row > Main connection; connect the tXSLT component and the tLogRow component using a Row > Main connection.
  3. Double-click tFileInputRaw to open its Basic settings view and:
    1. Set the path or browse to the customers.xml file in the Filename field.
    2. Select the Stream the file option.
    3. Leave the other options as they are.
  4. Double-click tXSLT to open its Basic settings view and:
    1. Enter row1.content in the XML file field to receive the input stream.
    2. Set the path or browse to the customers.xsl file in the XSL file field.
    3. Set the path or browse to the output html file (customers.html in this scenario) in the Output file field.
    4. In the Parameters area, click the plus button to add a line. Enter "bgcolor" and "green" in the name column and the value column.
    5. Leave the other options as they are.
  5. Save the Job and press F6 to execute it.
    The output HTML file is generated as defined.
  6. In the Basic settings view of the tXSLT component,
    1. Click the three-dot button next to Edit schema to open the schema editor, add a column (type String) on the tXSLT side, and click Yes when prompted to propagate the change.
    2. Select Use column instead of file for result option and select the column just added from the Output column for result drop-down list.
  7. Leave the tLogRow component as it is.
  8. Save the Job and press F6 to execute it again.
    The output is displayed in the console.