plcopen/pou_block_instances.xslt
author Surkov Sergey <surkovsv93@gmail.com>
Wed, 31 Jan 2018 16:31:01 +0300
changeset 1968 64827679f3f1
parent 1382 675a6229fc60
child 1936 b85b13b1c2ec
permissions -rw-r--r--
add fields autocomplete when adding task or instance in resources

values will be copied from previous row, first row fills with the default values
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     1
<?xml version="1.0"?>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     2
<xsl:stylesheet xmlns:func="http://exslt.org/functions" xmlns:dyn="http://exslt.org/dynamic" xmlns:str="http://exslt.org/strings" xmlns:math="http://exslt.org/math" xmlns:exsl="http://exslt.org/common" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:yml="http://fdik.org/yml" xmlns:set="http://exslt.org/sets" xmlns:ppx="http://www.plcopen.org/xml/tc6_0201" xmlns:ns="pou_block_instances_ns" xmlns:regexp="http://exslt.org/regular-expressions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" extension-element-prefixes="ns" version="1.0" exclude-result-prefixes="ns">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     3
  <xsl:output method="xml"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     4
  <xsl:variable name="space" select="'                                                                                                                                                                                                        '"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     5
  <xsl:param name="autoindent" select="4"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     6
  <xsl:template match="text()">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     7
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
     8
  </xsl:template>
1382
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
     9
  <xsl:template match="ppx:pou[ppx:body]|ppx:transition[ppx:body]|ppx:action[ppx:body]">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    10
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    11
    <xsl:apply-templates select="ppx:body/*[self::ppx:FBD or self::ppx:LD or self::ppx:SFC]/*">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    12
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    13
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    14
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    15
  <xsl:template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    16
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    17
    <xsl:param name="type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    18
    <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
    19
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    20
  <xsl:template name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    21
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    22
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    23
      <xsl:when test="@executionOrderId">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    24
        <xsl:value-of select="@executionOrderId"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    25
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    26
      <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    27
        <xsl:text>0</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    28
      </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    29
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    30
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    31
  <xsl:template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    32
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    33
    <xsl:param name="type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    34
    <xsl:param name="negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    35
    <xsl:param name="edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    36
    <xsl:param name="formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    37
    <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
    38
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    39
  <xsl:template match="ppx:position">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    40
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    41
    <xsl:value-of select="ns:AddLinkPoint(@x, @y)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    42
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    43
  <xsl:template match="ppx:connection">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    44
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    45
    <xsl:value-of select="ns:AddConnectionLink(@refLocalId, @formalParameter)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    46
    <xsl:apply-templates select="ppx:position">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    47
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    48
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    49
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    50
  <xsl:template match="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    51
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    52
    <xsl:param name="negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    53
    <xsl:param name="edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    54
    <xsl:param name="formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    55
    <xsl:call-template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    56
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    57
        <xsl:text>input</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    58
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    59
      <xsl:with-param name="negated">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    60
        <xsl:value-of select="$negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    61
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    62
      <xsl:with-param name="edge">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    63
        <xsl:value-of select="$edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    64
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    65
      <xsl:with-param name="formalParameter">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    66
        <xsl:value-of select="$formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    67
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    68
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    69
    <xsl:apply-templates select="ppx:connection">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    70
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    71
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    72
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    73
  <xsl:template match="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    74
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    75
    <xsl:param name="negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    76
    <xsl:param name="edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    77
    <xsl:param name="formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    78
    <xsl:call-template name="ConnectionInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    79
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    80
        <xsl:text>output</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    81
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    82
      <xsl:with-param name="negated">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    83
        <xsl:value-of select="$negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    84
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    85
      <xsl:with-param name="edge">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    86
        <xsl:value-of select="$edge"/>
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:with-param name="formalParameter">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    89
        <xsl:value-of select="$formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    90
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    91
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    92
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    93
  <xsl:template match="ppx:connectionPointOutAction">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    94
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
    95
    <xsl:call-template name="ConnectionInfos">
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:text>output</xsl:text>
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:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   101
  <xsl:template match="ppx:comment">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   102
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   103
    <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
   104
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   105
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   106
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   107
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   108
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   109
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   110
  <xsl:template match="ppx:block">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   111
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   112
    <xsl:variable name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   113
      <xsl:call-template name="execution_order"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   114
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   115
    <xsl:value-of select="ns:SetSpecificValues(@instanceName, $execution_order)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   116
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   117
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   118
        <xsl:value-of select="@typeName"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   119
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   120
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   121
    <xsl:for-each select="ppx:inputVariables/ppx:variable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   122
      <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   123
        <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   124
        <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   125
        <xsl:with-param name="edge" select="@edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   126
        <xsl:with-param name="formalParameter" select="@formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   127
      </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   128
    </xsl:for-each>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   129
    <xsl:for-each select="ppx:outputVariables/ppx:variable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   130
      <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   131
        <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   132
        <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   133
        <xsl:with-param name="edge" select="@edge"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   134
        <xsl:with-param name="formalParameter" select="@formalParameter"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   135
      </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   136
    </xsl:for-each>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   137
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   138
  <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
   139
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   140
    <xsl:value-of select="@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   141
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   142
  <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
   143
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   144
    <xsl:text>STRING</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   145
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   146
  <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
   147
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   148
    <xsl:text>WSTRING</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   149
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   150
  <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
   151
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   152
    <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   153
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   154
  <xsl:template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   155
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   156
    <xsl:param name="type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   157
    <xsl:variable name="expression">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   158
      <xsl:value-of select="ppx:expression/text()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   159
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   160
    <xsl:variable name="value_type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   161
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   162
        <xsl:when test="ancestor::ppx:transition[@name=$expression]">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   163
          <xsl:text>BOOL</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   164
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   165
        <xsl:when test="ancestor::ppx:pou[@name=$expression]">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   166
          <xsl:apply-templates select="ancestor::ppx:pou/child::ppx:interface/ppx:returnType">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   167
            <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   168
          </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   169
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   170
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   171
          <xsl:apply-templates select="ancestor::ppx:pou/child::ppx:interface/*/ppx:variable[@name=$expression]/ppx:type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   172
            <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   173
          </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   174
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   175
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   176
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   177
    <xsl:variable name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   178
      <xsl:call-template name="execution_order"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   179
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   180
    <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
   181
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   182
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   183
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   184
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   185
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   186
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   187
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   188
      <xsl:with-param name="negated" select="@negatedIn"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   189
      <xsl:with-param name="edge" select="@edgeIn"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   190
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   191
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   192
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   193
      <xsl:with-param name="negated" select="@negatedOut"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   194
      <xsl:with-param name="edge" select="@edgeOut"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   195
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   196
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   197
  <xsl:template match="ppx:inVariable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   198
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   199
    <xsl:call-template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   200
      <xsl:with-param name="type" select="'input'"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   201
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   202
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   203
  <xsl:template match="ppx:outVariable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   204
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   205
    <xsl:call-template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   206
      <xsl:with-param name="type" select="'output'"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   207
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   208
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   209
  <xsl:template match="ppx:inOutVariable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   210
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   211
    <xsl:call-template name="VariableBlockInfos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   212
      <xsl:with-param name="type" select="'inout'"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   213
    </xsl:call-template>
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:connector|ppx:continuation">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   216
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   217
    <xsl:value-of select="ns:SetSpecificValues(@name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   218
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   219
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   220
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   221
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   222
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   223
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   224
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   225
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   226
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   227
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   228
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   229
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   230
  <xsl:template match="ppx:leftPowerRail|ppx:rightPowerRail">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   231
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   232
    <xsl:variable name="type" select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   233
    <xsl:variable name="connectors">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   234
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   235
        <xsl:when test="$type='leftPowerRail'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   236
          <xsl:value-of select="count(ppx:connectionPointOut)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   237
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   238
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   239
          <xsl:value-of select="count(ppx:connectionPointIn)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   240
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   241
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   242
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   243
    <xsl:value-of select="ns:SetSpecificValues($connectors)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   244
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   245
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   246
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   247
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   248
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   249
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   250
      <xsl:when test="$type='leftPowerRail'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   251
        <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   252
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   253
        </xsl:apply-templates>
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:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   257
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   258
        </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   259
      </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   260
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   261
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   262
  <xsl:template match="ppx:contact|ppx:coil">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   263
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   264
    <xsl:variable name="type" select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   265
    <xsl:variable name="storage">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   266
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   267
        <xsl:when test="$type='coil'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   268
          <xsl:value-of select="@storage"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   269
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   270
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   271
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   272
    <xsl:variable name="execution_order">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   273
      <xsl:call-template name="execution_order"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   274
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   275
    <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
   276
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   277
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   278
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   279
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   280
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   281
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   282
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   283
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   284
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   285
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
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:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   288
  <xsl:template match="ppx:step">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   289
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   290
    <xsl:value-of select="ns:SetSpecificValues(@name, @initialStep)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   291
    <xsl:apply-templates select="ppx:connectionPointOutAction">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   292
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   293
      <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   294
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   295
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   296
      <xsl:with-param 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:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   299
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   300
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   301
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   302
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   303
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   304
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   305
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   306
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   307
  <xsl:template match="ppx:transition">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   308
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   309
    <xsl:variable name="priority">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   310
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   311
        <xsl:when test="@priority">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   312
          <xsl:value-of select="@priority"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   313
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   314
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   315
          <xsl:text>0</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   316
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   317
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   318
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   319
    <xsl:variable name="condition_type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   320
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   321
        <xsl:when test="ppx:condition/ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   322
          <xsl:text>connection</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   323
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   324
        <xsl:when test="ppx:condition/ppx:reference">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   325
          <xsl:text>reference</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   326
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   327
        <xsl:when test="ppx:condition/ppx:inline">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   328
          <xsl:text>inline</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   329
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   330
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   331
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   332
    <xsl:variable name="condition">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   333
      <xsl:choose>
1382
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
   334
        <xsl:when test="ppx:condition/ppx:reference">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   335
          <xsl:value-of select="ppx:condition/ppx:reference/@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   336
        </xsl:when>
1382
675a6229fc60 Fixed bugs in SFC when loading transition condition and referenced transition or action body
Laurent Bessard
parents: 1349
diff changeset
   337
        <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
   338
          <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
   339
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   340
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   341
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   342
    <xsl:value-of select="ns:SetSpecificValues($priority, $condition_type, $condition)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   343
    <xsl:apply-templates select="ppx:condition/ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   344
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   345
      <xsl:with-param name="negated" select="ppx:condition/@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   346
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   347
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   348
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   349
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   350
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   351
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   352
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   353
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   354
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   355
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   356
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   357
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   358
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   359
  <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
   360
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   361
    <xsl:variable name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   362
      <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   363
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   364
    <xsl:variable name="connectors">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   365
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   366
        <xsl:when test="$type='selectionDivergence' or $type='simultaneousDivergence'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   367
          <xsl:value-of select="count(ppx:connectionPointOut)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   368
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   369
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   370
          <xsl:value-of select="count(ppx:connectionPointIn)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   371
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   372
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   373
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   374
    <xsl:value-of select="ns:SetSpecificValues($connectors)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   375
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   376
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   377
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   378
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   379
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   380
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   381
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   382
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   383
    <xsl:apply-templates select="ppx:connectionPointOut">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   384
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   385
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   386
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   387
  <xsl:template match="ppx:jumpStep">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   388
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   389
    <xsl:variable name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   390
      <xsl:text>jump</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   391
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   392
    <xsl:value-of select="ns:SetSpecificValues(@targetName)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   393
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   394
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   395
        <xsl:value-of select="$type"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   396
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   397
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   398
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   399
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   400
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   401
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   402
  <xsl:template match="ppx:action">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   403
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   404
    <xsl:variable name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   405
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   406
        <xsl:when test="ppx:reference">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   407
          <xsl:text>reference</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   408
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   409
        <xsl:when test="ppx:inline">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   410
          <xsl:text>inline</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   411
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   412
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   413
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   414
    <xsl:variable name="value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   415
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   416
        <xsl:when test="ppx:reference">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   417
          <xsl:value-of select="ppx:reference/@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   418
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   419
        <xsl:when test="ppx:inline">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   420
          <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
   421
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   422
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   423
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   424
    <xsl:variable name="qualifier">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   425
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   426
        <xsl:when test="@qualifier">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   427
          <xsl:value-of select="@qualifier"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   428
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   429
        <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   430
          <xsl:text>N</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   431
        </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   432
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   433
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   434
    <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
   435
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   436
  <xsl:template match="ppx:actionBlock">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   437
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   438
    <xsl:value-of select="ns:SetSpecificValues()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   439
    <xsl:apply-templates select="ppx:action">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   440
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   441
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   442
    <xsl:call-template name="add_instance">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   443
      <xsl:with-param name="type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   444
        <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   445
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   446
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   447
    <xsl:apply-templates select="ppx:connectionPointIn">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   448
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   449
      <xsl:with-param name="negated" select="@negated"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   450
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   451
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1345
diff changeset
   452
</xsl:stylesheet>