Simplify and add hacks for some XSLT processors: simpler xpath expressions in filtering.xsl and qt hack in mergesysdef.xsl. Move path processing XSLT templates to separate module so it can be used in both joining and merging. Add .bat files for each of the PERL and XSLT scripts so they can be more esily called from the command line (joinsysdef.bat calls joinsysdef.pl, not joinsysdef.xsl).
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".
Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
Description:
Validate a system definition file/files and output results as plain text
-->
<xsl:output method="text"/>
<xsl:include href="test-model.xsl"/>
<xsl:param name="level" select="3"/>
<xsl:param name="path-errors" select="0"/>
<xsl:template name="Section"><xsl:param name="text"/><xsl:param name="sub"/>
<xsl:text>

</xsl:text>
<xsl:value-of select="$text"/>
<xsl:if test="$sub!=''"> (<xsl:value-of select="$sub"/>)</xsl:if>
</xsl:template>
<xsl:template name="Note"><xsl:param name="text"/><xsl:param name="sub"/>
<xsl:if test="$level >= 3">
<xsl:text>
Note: </xsl:text>
<xsl:value-of select="$text"/>
<xsl:if test="$sub!=''"> (<xsl:value-of select="$sub"/>)</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="Warning"><xsl:param name="text"/><xsl:param name="sub"/>
<xsl:if test="$level >= 2">
<xsl:text>
Warning: </xsl:text>
<xsl:value-of select="$text"/>
<xsl:if test="$sub!=''"> (<xsl:value-of select="$sub"/>)</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="Error"><xsl:param name="text"/><xsl:param name="sub"/>
<xsl:text>
Error: </xsl:text>
<xsl:value-of select="$text"/>
<xsl:if test="$sub!=''"> (<xsl:value-of select="$sub"/>)</xsl:if>
</xsl:template>
</xsl:stylesheet>