Skip to content

Commit

Permalink
add link type as parameter also
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilshetye committed Sep 24, 2024
1 parent 5d52c6a commit 318e08a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blocks/xcos2xml/split.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<xsl:key name="k-implicitsrclink" match="ImplicitLink" use="@source | @target" />

<xsl:template name="links">
<xsl:param name="linktype" />
<xsl:param name="targetonelink" />
<xsl:param name="sourceonelink" />
<xsl:param name="sourcetwolink" />
Expand Down Expand Up @@ -111,6 +112,7 @@
<xsl:variable name="sourcetwolink" select="key('k-srclink', $sourcetwoid)" />

<xsl:call-template name="links">
<xsl:with-param name="linktype" select="ExplicitLink"/>
<xsl:with-param name="targetonelink" select="$targetonelink"/>
<xsl:with-param name="sourceonelink" select="$sourceonelink"/>
<xsl:with-param name="sourcetwolink" select="$sourcetwolink"/>
Expand All @@ -128,6 +130,7 @@
<xsl:variable name="sourcecommandtwolink" select="key('k-commandsrclink', $sourcecommandtwoid)" />

<xsl:call-template name="links">
<xsl:with-param name="linktype" select="ImplicitLink"/>
<xsl:with-param name="targetonelink" select="$targetcommandonelink"/>
<xsl:with-param name="sourceonelink" select="$sourcecommandonelink"/>
<xsl:with-param name="sourcetwolink" select="$sourcecommandtwolink"/>
Expand All @@ -145,6 +148,7 @@
<xsl:variable name="sourceimplicittwolink" select="key('k-implicitsrclink', $sourceimplicittwoid)" />

<xsl:call-template name="links">
<xsl:with-param name="linktype" select="CommandControlLink"/>
<xsl:with-param name="targetonelink" select="$targetimplicitonelink"/>
<xsl:with-param name="sourceonelink" select="$sourceimplicitonelink"/>
<xsl:with-param name="sourcetwolink" select="$sourceimplicittwolink"/>
Expand Down

0 comments on commit 318e08a

Please sign in to comment.