Change the order of tests in sub GetXsltDir, so that it tests relative to the root directory before using the current dir (which will always exist)
Improved debug output when unable to open some of the files.
<?xml version="1.0" encoding="UTF-8"?>
<SystemDefinition schema="3.0.0">
<package id="buildtools" name="Build Tools" levels="bld mw fw ui">
<collection id="bldsystemtools" name="Build System Tools" level="bld">
<component id="sysdeftools" name="System Definition Tools" purpose="development" introduced="^2">
<unit mrp="bldsystemtools/sysdeftools/group/sysdeftools.mrp"/>
</component>
<component id="commonbldutils" name="Common Utils" purpose="development">
<unit mrp="bldsystemtools/commonbldutils/tools_utils_common.mrp"/>
</component>
</collection>
<collection id="toolsandutils" name="Tools and Utils" level="mw">
<component id="productionbldtools" name="Production Build Tools" filter="gt" purpose="development">
<unit mrp="toolsandutils/productionbldtools/product_tools.mrp"/>
</component>
<component id="e32tools" name="E32 Tools" deprecated="^2" purpose="development" target="desktop">
<unit bldFile="toolsandutils/e32tools/group" mrp="toolsandutils/e32tools/group/tools_e32tools.mrp"/>
</component>
<component id="wintunnel" name="Wintunnel" purpose="development" filter="test">
<unit mrp="toolsandutils/wintunnel/group/testtools_WinTunnel_srconly.mrp" bldFile="toolsandutils/wintunnel/group"/>
</component>
<component id="autotest" name="Autotest" purpose="development">
<unit bldFile="toolsandutils/autotest/group" mrp="toolsandutils/autotest/group/tools_autotest.mrp"/>
</component>
</collection>
<collection id="sbsv1_os" name="Symbian Build System v1" level="fw">
<component id="e32toolp" name="E32 Perl Tools" purpose="development" target="desktop" filter="sf_build">
<unit mrp="sbsv1_os/e32toolp/group/tools_e32toolp.mrp" bldFile="sbsv1_os/e32toolp/group"/>
</component>
</collection>
<collection id="imgtools_os" name="Image Tools" level="fw">
<component id="romkiteka2" name="ROMKIT EKA2" deprecated="^2" purpose="development">
<unit bldFile="imgtools_os/romkiteka2/group" mrp="imgtools_os/romkiteka2/group/tools_romkit.mrp"/>
</component>
</collection>
<collection id="misccomponents" name="Misc Components" level="mw">
<component id="emulatorlauncher" name="Emulator Launcher" filter="gt" purpose="development">
<unit bldFile="misccomponents/emulatorlauncher/group" mrp="misccomponents/emulatorlauncher/group/tools_sdk_eng_emulator_launcher.mrp"/>
</component>
</collection>
<collection id="buildtools_info" name="Build Tools Info" level="ui">
<component id="buildtools_metadata" name="Build Tools Metadata" class="config" introduced="^2" purpose="development" target="desktop">
<unit mrp="buildtools_info/buildtools_metadata/buildtools_metadata.mrp"/>
</component>
</collection>
</package>
</SystemDefinition>