sysdeftools/joinsysdef-module.xsl
branchHighFidelityModel
changeset 264 1742dcffa186
parent 259 fbf606da2044
child 319 b085ba15cdaa
equal deleted inserted replaced
259:fbf606da2044 264:1742dcffa186
    19  
    19  
    20 <!-- create a stand-alone sysdef from a linked set of fragments -->
    20 <!-- create a stand-alone sysdef from a linked set of fragments -->
    21 
    21 
    22 <xsl:template match="/*" mode="join">
    22 <xsl:template match="/*" mode="join">
    23 	<xsl:param name="filename"/>
    23 	<xsl:param name="filename"/>
    24 	<xsl:message terminate="yes">ERROR: Cannot process this document<xsl:if test="$filename !=''"> (<xsl:value-of select="$filename)</xsl:if>
    24 	<xsl:message terminate="yes">ERROR: Cannot process this document<xsl:if test="$filename !=''"> (<xsl:value-of select="$filename"/>)</xsl:if>
    25 		<xsl:choose>
    25 		<xsl:choose>
    26 			<xsl:when test="self::SystemDefinition/@schema">. Unrecognised syntax schema="<xsl:value-of select="@schema"/>"</xsl:when>
    26 			<xsl:when test="self::SystemDefinition/@schema">. Unrecognised syntax schema="<xsl:value-of select="@schema"/>"</xsl:when>
    27 			<xsl:when test="self::SystemDefinition">. Missing schema</xsl:when>
    27 			<xsl:when test="self::SystemDefinition">. Missing schema</xsl:when>
    28 			<xsl:otherwise>. Invalid file type: <xsl:value-of select="name()"/></xsl:otherwise>
    28 			<xsl:otherwise>. Invalid file type: <xsl:value-of select="name()"/></xsl:otherwise>
    29 		<xsl:choose>
    29 		</xsl:choose>
    30 	</xsl:message>
    30 	</xsl:message>
    31 </xsl:template>
    31 </xsl:template>
    32 
    32 
    33 <!-- anything in schemas 3.0.x won't add new functional attributes that need processing here, just blindly copy them-->
    33 <!-- anything in schemas 3.0.x won't add new functional attributes that need processing here, just blindly copy them-->
    34 
    34