plcopen/pou_block_instances.xslt
author Edouard Tisserant
Mon, 01 Mar 2021 15:45:13 +0100
changeset 2727 6330e6bb345d
parent 2637 507737ec2b9a
child 3801 6839dbb9a1df
permissions -rw-r--r--
IDE: Make ST code generation more verbose, since it can be really long in case of big programs, and it is better to let the user know build is still in progress.
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     1
<?xml version="1.0"?>
2637
507737ec2b9a Non significant changes in generated xslt, side effect of changes in yslt_noindent.yml2
Edouard Tisserant
parents: 1957
diff changeset
     2
<xsl:stylesheet xmlns:ns="beremiz" xmlns:regexp="http://exslt.org/regular-expressions" xmlns:str="http://exslt.org/strings" xmlns:ppx="http://www.plcopen.org/xml/tc6_0201" xmlns:exsl="http://exslt.org/common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="ns" extension-element-prefixes="ns">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     3
  <xsl:output method="xml"/>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
     4
  <xsl:template match="text()"/>
1382
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
     5
  <xsl:template match="ppx:pou[ppx:body]|ppx:transition[ppx:body]|ppx:action[ppx:body]">
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
     6
    <xsl:apply-templates select="ppx:body/*[self::ppx:FBD or self::ppx:LD or self::ppx:SFC]/*"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     7
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     8
  <xsl:template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     9
    <xsl:param name="type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    10
    <xsl:value-of select="ns:AddBlockInstance($type, @localId, ppx:position/@x, ppx:position/@y, @width, @height)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    11
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    12
  <xsl:template name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    13
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    14
      <xsl:when test="@executionOrderId">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    15
        <xsl:value-of select="@executionOrderId"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    16
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    17
      <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    18
        <xsl:text>0</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    19
      </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    20
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    21
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    22
  <xsl:template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    23
    <xsl:param name="type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    24
    <xsl:param name="negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    25
    <xsl:param name="edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    26
    <xsl:param name="formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    27
    <xsl:value-of select="ns:AddInstanceConnection($type, $formalParameter, $negated, $edge, ppx:relPosition/@x, ppx:relPosition/@y)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    28
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    29
  <xsl:template match="ppx:position">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    30
    <xsl:value-of select="ns:AddLinkPoint(@x, @y)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    31
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    32
  <xsl:template match="ppx:connection">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    33
    <xsl:value-of select="ns:AddConnectionLink(@refLocalId, @formalParameter)"/>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
    34
    <xsl:apply-templates select="ppx:position"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    35
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    36
  <xsl:template match="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    37
    <xsl:param name="negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    38
    <xsl:param name="edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    39
    <xsl:param name="formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    40
    <xsl:call-template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    41
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    42
        <xsl:text>input</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    43
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    44
      <xsl:with-param name="negated">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    45
        <xsl:value-of select="$negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    46
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    47
      <xsl:with-param name="edge">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    48
        <xsl:value-of select="$edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    49
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    50
      <xsl:with-param name="formalParameter">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    51
        <xsl:value-of select="$formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    52
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    53
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
    54
    <xsl:apply-templates select="ppx:connection"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    55
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    56
  <xsl:template match="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    57
    <xsl:param name="negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    58
    <xsl:param name="edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    59
    <xsl:param name="formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    60
    <xsl:call-template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    61
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    62
        <xsl:text>output</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    63
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    64
      <xsl:with-param name="negated">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    65
        <xsl:value-of select="$negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    66
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    67
      <xsl:with-param name="edge">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    68
        <xsl:value-of select="$edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    69
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    70
      <xsl:with-param name="formalParameter">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    71
        <xsl:value-of select="$formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    72
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    73
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    74
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    75
  <xsl:template match="ppx:connectionPointOutAction">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    76
    <xsl:call-template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    77
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    78
        <xsl:text>output</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    79
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    80
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    81
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    82
  <xsl:template match="ppx:comment">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    83
    <xsl:value-of select="ns:SetSpecificValues(ppx:content/xhtml:p/text())"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    84
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    85
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    86
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    87
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    88
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    89
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    90
  <xsl:template match="ppx:block">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    91
    <xsl:variable name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    92
      <xsl:call-template name="execution_order"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    93
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    94
    <xsl:value-of select="ns:SetSpecificValues(@instanceName, $execution_order)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    95
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    96
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    97
        <xsl:value-of select="@typeName"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    98
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    99
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   100
    <xsl:for-each select="ppx:inputVariables/ppx:variable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   101
      <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   102
        <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   103
        <xsl:with-param name="edge" select="@edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   104
        <xsl:with-param name="formalParameter" select="@formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   105
      </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   106
    </xsl:for-each>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   107
    <xsl:for-each select="ppx:outputVariables/ppx:variable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   108
      <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   109
        <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   110
        <xsl:with-param name="edge" select="@edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   111
        <xsl:with-param name="formalParameter" select="@formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   112
      </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   113
    </xsl:for-each>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   114
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   115
  <xsl:template match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   116
    <xsl:value-of select="@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   117
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   118
  <xsl:template match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:string">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   119
    <xsl:text>STRING</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   120
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   121
  <xsl:template match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:wstring">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   122
    <xsl:text>WSTRING</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   123
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   124
  <xsl:template match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   125
    <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   126
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   127
  <xsl:template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   128
    <xsl:param name="type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   129
    <xsl:variable name="expression">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   130
      <xsl:value-of select="ppx:expression/text()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   131
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   132
    <xsl:variable name="value_type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   133
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   134
        <xsl:when test="ancestor::ppx:transition[@name=$expression]">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   135
          <xsl:text>BOOL</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   136
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   137
        <xsl:when test="ancestor::ppx:pou[@name=$expression]">
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   138
          <xsl:apply-templates select="ancestor::ppx:pou/child::ppx:interface/ppx:returnType"/>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   139
        </xsl:when>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   140
        <xsl:otherwise>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   141
          <xsl:apply-templates select="ancestor::ppx:pou/child::ppx:interface/*/ppx:variable[@name=$expression]/ppx:type"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   142
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   143
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   144
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   145
    <xsl:variable name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   146
      <xsl:call-template name="execution_order"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   147
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   148
    <xsl:value-of select="ns:SetSpecificValues($expression, $value_type, $execution_order)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   149
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   150
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   151
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   152
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   153
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   154
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   155
      <xsl:with-param name="negated" select="@negatedIn"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   156
      <xsl:with-param name="edge" select="@edgeIn"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   157
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   158
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   159
      <xsl:with-param name="negated" select="@negatedOut"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   160
      <xsl:with-param name="edge" select="@edgeOut"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   161
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   162
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   163
  <xsl:template match="ppx:inVariable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   164
    <xsl:call-template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   165
      <xsl:with-param name="type" select="'input'"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   166
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   167
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   168
  <xsl:template match="ppx:outVariable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   169
    <xsl:call-template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   170
      <xsl:with-param name="type" select="'output'"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   171
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   172
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   173
  <xsl:template match="ppx:inOutVariable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   174
    <xsl:call-template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   175
      <xsl:with-param name="type" select="'inout'"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   176
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   177
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   178
  <xsl:template match="ppx:connector|ppx:continuation">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   179
    <xsl:value-of select="ns:SetSpecificValues(@name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   180
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   181
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   182
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   183
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   184
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   185
    <xsl:apply-templates select="ppx:connectionPointIn"/>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   186
    <xsl:apply-templates select="ppx:connectionPointOut"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   187
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   188
  <xsl:template match="ppx:leftPowerRail|ppx:rightPowerRail">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   189
    <xsl:variable name="type" select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   190
    <xsl:variable name="connectors">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   191
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   192
        <xsl:when test="$type='leftPowerRail'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   193
          <xsl:value-of select="count(ppx:connectionPointOut)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   194
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   195
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   196
          <xsl:value-of select="count(ppx:connectionPointIn)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   197
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   198
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   199
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   200
    <xsl:value-of select="ns:SetSpecificValues($connectors)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   201
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   202
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   203
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   204
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   205
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   206
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   207
      <xsl:when test="$type='leftPowerRail'">
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   208
        <xsl:apply-templates select="ppx:connectionPointOut"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   209
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   210
      <xsl:otherwise>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   211
        <xsl:apply-templates select="ppx:connectionPointIn"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   212
      </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   213
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   214
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   215
  <xsl:template match="ppx:contact|ppx:coil">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   216
    <xsl:variable name="type" select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   217
    <xsl:variable name="storage">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   218
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   219
        <xsl:when test="$type='coil'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   220
          <xsl:value-of select="@storage"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   221
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   222
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   223
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   224
    <xsl:variable name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   225
      <xsl:call-template name="execution_order"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   226
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   227
    <xsl:value-of select="ns:SetSpecificValues(ppx:variable/text(), @negated, @edge, $storage, $execution_order)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   228
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   229
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   230
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   231
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   232
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   233
    <xsl:apply-templates select="ppx:connectionPointIn"/>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   234
    <xsl:apply-templates select="ppx:connectionPointOut"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   235
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   236
  <xsl:template match="ppx:step">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   237
    <xsl:value-of select="ns:SetSpecificValues(@name, @initialStep)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   238
    <xsl:apply-templates select="ppx:connectionPointOutAction">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   239
      <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   240
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   241
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   242
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   243
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   244
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   245
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   246
    <xsl:apply-templates select="ppx:connectionPointIn"/>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   247
    <xsl:apply-templates select="ppx:connectionPointOut"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   248
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   249
  <xsl:template match="ppx:transition">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   250
    <xsl:variable name="priority">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   251
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   252
        <xsl:when test="@priority">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   253
          <xsl:value-of select="@priority"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   254
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   255
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   256
          <xsl:text>0</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   257
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   258
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   259
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   260
    <xsl:variable name="condition_type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   261
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   262
        <xsl:when test="ppx:condition/ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   263
          <xsl:text>connection</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   264
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   265
        <xsl:when test="ppx:condition/ppx:reference">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   266
          <xsl:text>reference</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   267
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   268
        <xsl:when test="ppx:condition/ppx:inline">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   269
          <xsl:text>inline</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   270
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   271
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   272
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   273
    <xsl:variable name="condition">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   274
      <xsl:choose>
1382
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
   275
        <xsl:when test="ppx:condition/ppx:reference">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   276
          <xsl:value-of select="ppx:condition/ppx:reference/@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   277
        </xsl:when>
1382
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
   278
        <xsl:when test="ppx:condition/ppx:inline">
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
   279
          <xsl:value-of select="ppx:condition/ppx:inline/ppx:ST/xhtml:p/text()"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   280
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   281
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   282
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   283
    <xsl:value-of select="ns:SetSpecificValues($priority, $condition_type, $condition)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   284
    <xsl:apply-templates select="ppx:condition/ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   285
      <xsl:with-param name="negated" select="ppx:condition/@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   286
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   287
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   288
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   289
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   290
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   291
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   292
    <xsl:apply-templates select="ppx:connectionPointIn"/>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   293
    <xsl:apply-templates select="ppx:connectionPointOut"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   294
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   295
  <xsl:template match="ppx:selectionDivergence|ppx:selectionConvergence|ppx:simultaneousDivergence|ppx:simultaneousConvergence">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   296
    <xsl:variable name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   297
      <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   298
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   299
    <xsl:variable name="connectors">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   300
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   301
        <xsl:when test="$type='selectionDivergence' or $type='simultaneousDivergence'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   302
          <xsl:value-of select="count(ppx:connectionPointOut)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   303
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   304
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   305
          <xsl:value-of select="count(ppx:connectionPointIn)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   306
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   307
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   308
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   309
    <xsl:value-of select="ns:SetSpecificValues($connectors)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   310
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   311
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   312
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   313
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   314
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   315
    <xsl:apply-templates select="ppx:connectionPointIn"/>
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   316
    <xsl:apply-templates select="ppx:connectionPointOut"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   317
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   318
  <xsl:template match="ppx:jumpStep">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   319
    <xsl:variable name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   320
      <xsl:text>jump</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   321
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   322
    <xsl:value-of select="ns:SetSpecificValues(@targetName)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   323
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   324
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   325
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   326
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   327
    </xsl:call-template>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   328
    <xsl:apply-templates select="ppx:connectionPointIn"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   329
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   330
  <xsl:template match="ppx:action">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   331
    <xsl:variable name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   332
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   333
        <xsl:when test="ppx:reference">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   334
          <xsl:text>reference</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   335
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   336
        <xsl:when test="ppx:inline">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   337
          <xsl:text>inline</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   338
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   339
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   340
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   341
    <xsl:variable name="value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   342
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   343
        <xsl:when test="ppx:reference">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   344
          <xsl:value-of select="ppx:reference/@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   345
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   346
        <xsl:when test="ppx:inline">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   347
          <xsl:value-of select="ppx:inline/ppx:ST/xhtml:p/text()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   348
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   349
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   350
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   351
    <xsl:variable name="qualifier">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   352
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   353
        <xsl:when test="@qualifier">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   354
          <xsl:value-of select="@qualifier"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   355
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   356
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   357
          <xsl:text>N</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   358
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   359
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   360
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   361
    <xsl:value-of select="ns:AddAction($qualifier, $type, $value, @duration, @indicator)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   362
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   363
  <xsl:template match="ppx:actionBlock">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   364
    <xsl:value-of select="ns:SetSpecificValues()"/>
1936
b85b13b1c2ec YSLT auto indent trick is useless here, added yslt_noindent.yml2, regenerated XSLT files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 1382
diff changeset
   365
    <xsl:apply-templates select="ppx:action"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   366
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   367
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   368
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   369
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   370
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   371
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   372
      <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   373
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   374
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   375
</xsl:stylesheet>