sysdeftools/joinsysdef-module.xsl
branchHighFidelityModel
changeset 164 8309dda95234
parent 151 84b123918d3f
child 201 280dc2a9385b
equal deleted inserted replaced
163:c004c9299c6f 164:8309dda95234
   383 		</xsl:message>
   383 		</xsl:message>
   384 	</xsl:if>
   384 	</xsl:if>
   385 	<xsl:variable name="prefix" select="name($namespaces[.=$ns])"/>
   385 	<xsl:variable name="prefix" select="name($namespaces[.=$ns])"/>
   386 	<xsl:attribute name="{name()}">
   386 	<xsl:attribute name="{name()}">
   387 	<xsl:choose>
   387 	<xsl:choose>
   388 		<xsl:when test="$prefix = 'id-namespace' or  (not($namespaces[name()='id-prefix']) and $ns=$defaultns)"/> <!-- it's the default namespace, no prefix -->
   388 		<xsl:when test="$prefix = 'id-namespace' or  (not($namespaces[name()='id-namespace']) and $ns=$defaultns)"/> <!-- it's the default namespace, no prefix -->
   389 		<xsl:when test="$prefix='' and contains(.,':')">
   389 		<xsl:when test="$prefix='' and contains(.,':')">
   390 			<!-- complex: copy id and copy namespace (namespace should be copied already)-->
   390 			<!-- complex: copy id and copy namespace (namespace should be copied already)-->
   391 			<xsl:value-of select="."/>
   391 			<xsl:value-of select="."/>
   392 		</xsl:when>
   392 		</xsl:when>
   393 		<xsl:when test="$prefix='' and $ns=$defaultns"/> <!-- no prefix and it's the default --> 
   393 		<xsl:when test="$prefix='' and $ns=$defaultns"/> <!-- no prefix and it's the default -->