Altova XMLSpy 2025 Professional Edition

Transforming the XML File

Home Prev Top Next

To transform the XML document using the XSL file you have assigned to it:

 

1.Ensure that the XML file is the active document.

2.Select the menu option XSL/XQuery | XSL Transformation (F10) or click the command's icon in the toolbar. This starts the transformation using the XSLT stylesheet referenced in the XML document. The output document is displayed in Browser View; it has the name XSL Output.html. The HTML document shows the Company/Address data in one block on the left, and the Company/Person data in tabular form below.

TutXSLTOutput
Note:Since the Company.xslt file is an XSLT 3.0 document, the built-in Altova XSLT 3.0 Engine is automatically selected for the transformation. If the HTML output file is not generated, ensure that, in the XSL section of the Options dialog (Tools | Options), the default file extension of the output file has been set to .html. This ensures that the browser reads the output document correctly as an HTML file.

 

© 2018-2024 Altova GmbH