sysmodellibs/sysmodelgen/extra/showdeps.xsl
changeset 7 3c36c452f013
equal deleted inserted replaced
6:5b32dc297d05 7:3c36c452f013
       
     1 <?xml version="1.0"?>
       
     2 <xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:s="http://www.w3.org/2000/svg">
       
     3 	<xsl:import href="dependencies.xsl"/>	
       
     4 	<xsl:output method="xml"/>
       
     5 
       
     6  <xsl:template match="s:g" mode="overlay"> 
       
     7 	<xsl:variable name="id" select="@id"/>
       
     8 	<xsl:variable name="found">
       
     9 		<xsl:apply-templates select="document($Data,/)/*" mode="is-present">
       
    10 			<xsl:with-param name="id" select="$id"/>
       
    11 		</xsl:apply-templates>
       
    12 	</xsl:variable> <!--  no overlay if no data file -->
       
    13 	<xsl:if test="$Data!='' and $found!=''">
       
    14 		<xsl:apply-templates select="." mode="my-overlay">
       
    15 			<xsl:with-param name="id" select="$id"/>
       
    16 		</xsl:apply-templates>
       
    17 	</xsl:if>
       
    18  </xsl:template>
       
    19 
       
    20  <xsl:template match="/" mode="my-legend"/>
       
    21  <xsl:template match="*" mode="legend-ext-width">0</xsl:template>
       
    22 
       
    23   <xsl:template match="s:g[(@class='component' or @class='layer-detail' or @class='package' or @class='collection')]">
       
    24   	<xsl:copy>
       
    25   	 	<xsl:copy-of select="@*"/>
       
    26 			<xsl:apply-templates select="node()"/>
       
    27  	</xsl:copy>
       
    28 </xsl:template>
       
    29 
       
    30 </xsl:stylesheet>