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="drm" name="DRM" levels="plugin framework server generic specific">
<collection id="drm_plat" name="DRM Platform Interfaces" level="specific">
<component id="roap_api" name="ROAP API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/roap_api/roap_api.metaxml"/>
<unit bldFile="drm_plat/roap_api/group"/>
</component>
<component id="drm_common_api" name="DRM Common API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_common_api/drm_common_api.metaxml"/>
<unit bldFile="drm_plat/drm_common_api/group"/>
</component>
<component id="drm_rights_api" name="DRM Rights API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_rights_api/drm_rights_api.metaxml"/>
<unit bldFile="drm_plat/drm_rights_api/group"/>
</component>
<component id="drm_legacy_api" name="DRM Legacy API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_legacy_api/drm_legacy_api.metaxml"/>
<unit bldFile="drm_plat/drm_legacy_api/group"/>
</component>
<component id="dcf_repository_api" name="DCF Repository API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/dcf_repository_api/dcf_repository_api.metaxml"/>
<unit bldFile="drm_plat/dcf_repository_api/group"/>
</component>
<component id="drm_service_api" name="DRM Service API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_service_api/drm_service_api.metaxml"/>
<unit bldFile="drm_plat/drm_service_api/group"/>
</component>
<component id="drm_secondary_display_api" name="DRM Secondary Display API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_secondary_display_api/drm_secondary_display_api.metaxml"/>
<unit bldFile="drm_plat/drm_secondary_display_api/group"/>
</component>
<component id="drm_license_manager_api" name="DRM License Manager API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_license_manager_api/drm_license_manager_api.metaxml"/>
<unit bldFile="drm_plat/drm_license_manager_api/group"/>
</component>
<component id="drm_utility_api" name="DRM Utility API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_utility_api/drm_utility_api.metaxml"/>
<unit bldFile="drm_plat/drm_utility_api/group"/>
</component>
<component id="drm_agents_api" name="DRM Agents API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/drm_agents_api/drm_agents_api.metaxml"/>
<unit bldFile="drm_plat/drm_agents_api/group"/>
</component>
<component id="wmdrm_core_api" name="WM DRM Core API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/wmdrm_core_api/wmdrm_core_api.metaxml"/>
<unit bldFile="drm_plat/wmdrm_core_api/group"/>
</component>
<component id="wmdrm_access_api" name="WMDRM Access API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/wmdrm_access_api/wmdrm_access_api.metaxml"/>
<unit bldFile="drm_plat/wmdrm_access_api/group"/>
</component>
<component id="wmdrm_ota_access_api" name="WMDRM OTA Access API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/wmdrm_ota_access_api/wmdrm_ota_access_api.metaxml"/>
<unit bldFile="drm_plat/wmdrm_ota_access_api/group"/>
</component>
<component id="camese_utility_api" name="Camese Utility API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/camese_utility_api/camese_utility_api.metaxml"/>
<meta rel="config">
<defined condition="__WINDOWS_MEDIA_DRM"/>
</meta>
<unit bldFile="drm_plat/camese_utility_api/group"/>
</component>
<component id="camese_framework_api" name="Camese Framework API" class="api" filter="s60">
<meta rel="Api" href="drm_plat/camese_framework_api/camese_framework_api.metaxml"/>
<meta rel="config">
<defined condition="__WINDOWS_MEDIA_DRM"/>
</meta>
<unit bldFile="drm_plat/camese_framework_api/group"/>
</component>
</collection>
<collection id="drm_pub" name="DRM Public Interfaces" level="specific">
<component id="drm_helper_api" name="DRM Helper API" class="api" filter="s60">
<meta rel="Api" href="drm_pub/drm_helper_api/drm_helper_api.metaxml"/>
<unit bldFile="drm_pub/drm_helper_api/group"/>
</component>
<component id="oma_drm_caf_agent_api" name="OMA DRM CAF Agent API" class="api" filter="s60">
<meta rel="Api" href="drm_pub/oma_drm_caf_agent_api/oma_drm_caf_agent_api.metaxml"/>
<unit bldFile="drm_pub/oma_drm_caf_agent_api/group"/>
</component>
<component id="drm_license_checker_api" name="DRM License Checker API" class="api" filter="s60">
<meta rel="Api" href="drm_pub/drm_license_checker_api/drm_license_checker_api.metaxml"/>
<unit bldFile="drm_pub/drm_license_checker_api/group"/>
</component>
</collection>
<collection id="commondrm" name="Common DRM" level="generic">
<!-- it looks like this collection would be better as a component. If so, move down a directory. Otherwise, split up the bld.inf -->
<component id="drmencryptor" filter="s60" name="DRM Encryptor">
<!-- this should have its own bld.inf or be removed as a component -->
</component>
<component id="drmsettingsplugin" filter="s60" name="DRM Settings Plugin" class="plugin">
<!-- this should have its own bld.inf or be removed as a component -->
</component>
<component id="drmrightsmanagerui" filter="s60" name="DRM Rights Manager UI">
<unit bldFile="commondrm/drmrightsmanagerui/help/group"/>
</component>
<component id="drmutility" filter="s60" name="DRM Utility">
<meta rel="config">
<defined condition="RD_DRM_COMMON_INTERFACE_FOR_OMA_AND_WMDRM"/>
</meta>
<!-- Uncomment unit when configuration is in place. Currently #included from commondrm_build -->
<!--<unit bldFile="commondrm/drmutility/group"/>-->
</component>
<component id="drmserviceapiwrapper" filter="s60" name="DRM Service API Wrapper">
<unit bldFile="commondrm/drmserviceapiwrapper/group"/>
</component>
<component id="drmrightsstoringlocation" filter="s60" name="DRM Rights Storing Location">
<unit bldFile="commondrm/drmrightsstoringlocation/group"/>
</component>
<component id="commondrm_build" filter="s60" name="Common DRM Build">
<!-- should be split into the above files, or them collapsed into a single component -->
<unit bldFile="commondrm/group"/>
</component>
</collection>
<collection id="omadrm" name="OMA DRM" level="server">
<!-- collection is really a component. Move down a directory -->
<component id="omadrm_build" filter="s60" name="OMA DRM Build">
<unit bldFile="omadrm/group"/>
</component>
<component id="rndcerts" filter="s60,test" name="R&D Certificates">
<unit bldFile="omadrm/rndcerts/group"/>
</component>
<component id="foundationcerts" filter="sf_build" name="Foundation Certificates">
<unit bldFile="omadrm/foundationcerts/group"/>
</component>
</collection>
<collection id="wmdrm" name="Windows Media DRM" level="framework">
<!-- collection is really a component. Move down a directory -->
<component id="wmdrm_build" filter="s60" name="WM DRM Build">
<unit bldFile="wmdrm/group"/>
</component>
</collection>
<collection id="drm_info" name="DRM Info" level="specific">
<component id="drm_api_test" filter="s60,test,api_test" name="DRM Build" purpose="development">
<unit bldFile="tsrc/group"/>
</component>
</collection>
</package>
</SystemDefinition>