sysmodelgen/core/joinsysdef-module.xsl
branchHighFidelityModel
changeset 207 2fd8a273d6d6
parent 165 ba562c1e2717
child 432 0f44a943faf9
equal deleted inserted replaced
206:eccc98839441 207:2fd8a273d6d6
   126 <xsl:template match="*[@href and not(self::meta)]" mode="scan-for-namespaces">
   126 <xsl:template match="*[@href and not(self::meta)]" mode="scan-for-namespaces">
   127 	<!-- produce a list of namespace-prefix namespace pairs separated by newlines, in reverse order found in documents 
   127 	<!-- produce a list of namespace-prefix namespace pairs separated by newlines, in reverse order found in documents 
   128 		reverse order so we can try to use the first namespace prefix defined if it's available-->
   128 		reverse order so we can try to use the first namespace prefix defined if it's available-->
   129 	<xsl:for-each select="document(@href,.)/*">
   129 	<xsl:for-each select="document(@href,.)/*">
   130 		<xsl:apply-templates select="//*[(self::component or self::collection or self::package or self::layer) and @href]" mode="scan-for-namespaces"/>
   130 		<xsl:apply-templates select="//*[(self::component or self::collection or self::package or self::layer) and @href]" mode="scan-for-namespaces"/>
   131 		<xsl:for-each select="//namespace::* | @id-namespace">
   131 		<xsl:for-each select="//namespace::*[.!='http://www.w3.org/XML/1998/namespace'] | @id-namespace">
       
   132 			<!-- ignore XML namespace -->
   132 			<xsl:value-of select="concat(name(),' ',.,'&#xa;')"/>
   133 			<xsl:value-of select="concat(name(),' ',.,'&#xa;')"/>
   133 		</xsl:for-each>
   134 		</xsl:for-each>
   134 	</xsl:for-each>			
   135 	</xsl:for-each>			
   135 </xsl:template>
   136 </xsl:template>
   136 
   137