Submitted by alla on Thu, 11/25/2010 - 15:52

Currently Supported XML Formats | Table of Contents | Writing XSLT Transforms >

Users can add XSLT transforms to MagicTree in order to import XML output of tools that MagicTree does not support out of the box. Once XSLT file is written, to get MagicTree to use it, copy it to .magictree/xslt directory and edit transforms.properties file in that directory. See Writing XSLT Transforms for hints on creating XSLT transform files.

transforms.properties file maps the XML root element of the XML file being processed to the name of the XSLT transform file that will be used to convert this XML format to MagicTree format.

For example, suppose you use a tool that outputs XML that looks like this:

<?xml version="1.0" ?>
<foo>
<bar />
<baz />
</foo>

You have created an XSLT transform fiel that transforms the output into MagticTree XML and called it foo2mt.xsl. You have copied it to .magictree/xslt . Then you to add the following line to transforms.properties file located in .magictree/xslt directory:

foo foo2mt.xsl

This will instruct MagicTree to use foo2mt.xsl to transform XML files that have <foo> as their root element.

Currently Supported XML Formats | Table of Contents | Writing XSLT Transforms >

Contacts

+32 (0) 2 215 53 58

Gremwell BVBA
Sint-Katherinastraat 24
1742 Ternat
Belgium
VAT: BE 0821.897.133.