plcopen/variables_infos.xslt
author Laurent Bessard
Mon, 14 Oct 2013 12:28:44 +0200
changeset 1365 debc97102b23
parent 1361 7158aa054226
child 1368 e567e4bee11f
permissions -rw-r--r--
Added support for optimizing debug, preventing to filling buffers with only the last value for debug data consumers that only show the current state
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     1
<?xml version="1.0"?>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
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="var_infos_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: 1347
diff changeset
     3
  <xsl:output method="xml"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     4
  <xsl:variable name="space" select="'                                                                                                                                                                                                        '"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     5
  <xsl:param name="autoindent" select="4"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     6
  <xsl:param name="tree"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     7
  <xsl:template match="text()">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     8
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
     9
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    10
  <xsl:variable name="project">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    11
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    12
      <xsl:when test="$tree='True'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    13
        <xsl:copy-of select="document('project')/project/*"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    14
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    15
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    16
  </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    17
  <xsl:variable name="stdlib">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    18
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    19
      <xsl:when test="$tree='True'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    20
        <xsl:copy-of select="document('stdlib')/stdlib/*"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    21
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    22
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    23
  </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    24
  <xsl:variable name="extensions">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    25
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    26
      <xsl:when test="$tree='True'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    27
        <xsl:copy-of select="document('extensions')/extensions/*"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    28
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    29
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    30
  </xsl:variable>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    31
  <xsl:template match="ppx:configuration">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    32
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    33
    <xsl:apply-templates select="ppx:globalVars">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    34
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    35
    </xsl:apply-templates>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    36
  </xsl:template>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    37
  <xsl:template match="ppx:resource">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    38
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    39
    <xsl:apply-templates select="ppx:globalVars">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    40
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    41
    </xsl:apply-templates>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    42
  </xsl:template>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    43
  <xsl:template match="ppx:pou">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    44
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    45
    <xsl:apply-templates select="ppx:interface/*">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    46
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    47
    </xsl:apply-templates>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    48
  </xsl:template>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    49
  <xsl:template match="ppx:returnType">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    50
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    51
    <xsl:value-of select="ns:AddTree()"/>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    52
    <xsl:apply-templates mode="var_type" select=".">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    53
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    54
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    55
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    56
  <xsl:template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    57
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    58
    <xsl:param name="var_class"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    59
    <xsl:variable name="var_option">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    60
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    61
        <xsl:when test="@constant='true' or @constant='1'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    62
          <xsl:text>Constant</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    63
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    64
        <xsl:when test="@retain='true' or @retain='1'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    65
          <xsl:text>Retain</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    66
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    67
        <xsl:when test="@nonretain='true' or @nonretain='1'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    68
          <xsl:text>Non-Retain</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    69
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    70
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    71
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    72
    <xsl:for-each select="ppx:variable">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    73
      <xsl:variable name="initial_value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    74
        <xsl:apply-templates select="ppx:initialValue">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    75
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    76
        </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    77
      </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    78
      <xsl:variable name="edit">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    79
        <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    80
          <xsl:when test="$var_class='Global' or $var_class='External'">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    81
            <xsl:text>true</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    82
          </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    83
          <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    84
            <xsl:apply-templates mode="var_edit" select="ppx:type">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    85
              <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    86
            </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    87
          </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    88
        </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    89
      </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    90
      <xsl:value-of select="ns:AddTree()"/>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
    91
      <xsl:apply-templates mode="var_type" select="ppx:type">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    92
        <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    93
      </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    94
      <xsl:value-of select="ns:AddVariable(@name, $var_class, $var_option, @address, $initial_value, $edit, ppx:documentation/xhtml:p/text())"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    95
    </xsl:for-each>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    96
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    97
  <xsl:template match="ppx:localVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    98
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
    99
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   100
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   101
        <xsl:text>Local</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   102
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   103
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   104
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   105
  <xsl:template match="ppx:globalVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   106
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   107
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   108
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   109
        <xsl:text>Global</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   110
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   111
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   112
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   113
  <xsl:template match="ppx:externalVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   114
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   115
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   116
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   117
        <xsl:text>External</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   118
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   119
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   120
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   121
  <xsl:template match="ppx:tempVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   122
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   123
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   124
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   125
        <xsl:text>Temp</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   126
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   127
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   128
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   129
  <xsl:template match="ppx:inputVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   130
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   131
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   132
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   133
        <xsl:text>Input</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   134
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   135
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   136
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   137
  <xsl:template match="ppx:outputVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   138
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   139
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   140
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   141
        <xsl:text>Output</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   142
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   143
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   144
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   145
  <xsl:template match="ppx:inOutVars">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   146
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   147
    <xsl:call-template name="variables_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   148
      <xsl:with-param name="var_class">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   149
        <xsl:text>InOut</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   150
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   151
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   152
  </xsl:template>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   153
  <xsl:template mode="var_type" match="ppx:pou">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   154
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   155
    <xsl:apply-templates mode="var_type" select="ppx:interface/*[self::ppx:inputVars or self::ppx:inOutVars or self::ppx:outputVars]/ppx:variable">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   156
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   157
    </xsl:apply-templates>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   158
  </xsl:template>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   159
  <xsl:template mode="var_type" match="ppx:variable">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   160
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   161
    <xsl:variable name="name">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   162
      <xsl:value-of select="@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   163
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   164
    <xsl:value-of select="ns:AddTree($name)"/>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   165
    <xsl:apply-templates mode="var_type" select="ppx:type">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   166
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   167
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   168
    <xsl:value-of select="ns:AddVarToTree($name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   169
  </xsl:template>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   170
  <xsl:template mode="var_type" match="ppx:dataType">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   171
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   172
    <xsl:apply-templates mode="var_type" select="ppx:baseType">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   173
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   174
    </xsl:apply-templates>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   175
  </xsl:template>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   176
  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:struct">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   177
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   178
    <xsl:apply-templates mode="var_type" select="ppx:variable">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   179
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   180
    </xsl:apply-templates>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   181
  </xsl:template>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   182
  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   183
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   184
    <xsl:variable name="type_name">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   185
      <xsl:value-of select="@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   186
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   187
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   188
      <xsl:when test="$tree='True'">
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   189
        <xsl:apply-templates mode="var_type" select="exsl:node-set($project)/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |&#10;                         exsl:node-set($project)/ppx:project/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name] |&#10;                         exsl:node-set($stdlib)/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |&#10;                         exsl:node-set($stdlib)/ppx:project/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name] |&#10;                         exsl:node-set($extensions)/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |&#10;                         exsl:node-set($extensions)/ppx:project/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   190
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   191
        </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   192
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   193
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   194
    <xsl:value-of select="ns:SetType($type_name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   195
  </xsl:template>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   196
  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:array">
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   197
    <xsl:param name="_indent" select="0"/>
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   198
    <xsl:apply-templates mode="var_type" select="ppx:baseType">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   199
      <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   200
    </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   201
    <xsl:for-each select="ppx:dimension">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   202
      <xsl:value-of select="ns:AddDimension(@lower, @upper)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   203
    </xsl:for-each>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   204
  </xsl:template>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   205
  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:string">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   206
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   207
    <xsl:variable name="name">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   208
      <xsl:text>STRING</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   209
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   210
    <xsl:value-of select="ns:SetType($name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   211
  </xsl:template>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   212
  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:wstring">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   213
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   214
    <xsl:variable name="name">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   215
      <xsl:text>WSTRING</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   216
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   217
    <xsl:value-of select="ns:SetType($name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   218
  </xsl:template>
1361
7158aa054226 Fixed bugs when editing resource variables and tasks
Laurent Bessard
parents: 1359
diff changeset
   219
  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   220
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   221
    <xsl:variable name="name">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   222
      <xsl:value-of select="local-name()"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   223
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   224
    <xsl:value-of select="ns:SetType($name)"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   225
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   226
  <xsl:template mode="var_edit" 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: 1347
diff changeset
   227
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   228
    <xsl:variable name="type_name" select="@name"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   229
    <xsl:variable name="pou_infos">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   230
      <xsl:copy-of select="exsl:node-set($project)/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |&#10;                    exsl:node-set($stdlib)/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] |&#10;                    exsl:node-set($extensions)/ppx:project/ppx:types/ppx:pous/ppx:pou[@name=$type_name]"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   231
    </xsl:variable>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   232
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   233
      <xsl:when test="$pou_infos != ''">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   234
        <xsl:text>false</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   235
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   236
      <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   237
        <xsl:text>true</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   238
      </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   239
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   240
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   241
  <xsl:template mode="var_edit" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   242
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   243
    <xsl:text>true</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   244
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   245
  <xsl:template match="ppx:value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   246
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   247
    <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   248
      <xsl:when test="@repetitionValue">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   249
        <xsl:value-of select="@repetitionValue"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   250
        <xsl:text>(</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   251
        <xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   252
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   253
        </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   254
        <xsl:text>)</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   255
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   256
      <xsl:when test="@member">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   257
        <xsl:value-of select="@member"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   258
        <xsl:text> := </xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   259
        <xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   260
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   261
        </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   262
      </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   263
      <xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   264
        <xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   265
          <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   266
        </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   267
      </xsl:otherwise>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   268
    </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   269
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   270
  <xsl:template match="ppx:simpleValue">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   271
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   272
    <xsl:value-of select="@value"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   273
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   274
  <xsl:template name="complex_type_value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   275
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   276
    <xsl:param name="start_bracket"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   277
    <xsl:param name="end_bracket"/>
1359
cce13b237b07 Fixed bug when loading complex type variable initial value
Laurent Bessard
parents: 1349
diff changeset
   278
    <xsl:value-of select="$start_bracket"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   279
    <xsl:for-each select="ppx:value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   280
      <xsl:apply-templates select=".">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   281
        <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   282
      </xsl:apply-templates>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   283
      <xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   284
        <xsl:when test="position()!=last()">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   285
          <xsl:text>, </xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   286
        </xsl:when>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   287
      </xsl:choose>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   288
    </xsl:for-each>
1359
cce13b237b07 Fixed bug when loading complex type variable initial value
Laurent Bessard
parents: 1349
diff changeset
   289
    <xsl:value-of select="$end_bracket"/>
1349
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   290
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   291
  <xsl:template match="ppx:arrayValue">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   292
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   293
    <xsl:call-template name="complex_type_value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   294
      <xsl:with-param name="start_bracket">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   295
        <xsl:text>[</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   296
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   297
      <xsl:with-param name="end_bracket">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   298
        <xsl:text>]</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   299
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   300
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   301
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   302
  <xsl:template match="ppx:structValue">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   303
    <xsl:param name="_indent" select="0"/>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   304
    <xsl:call-template name="complex_type_value">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   305
      <xsl:with-param name="start_bracket">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   306
        <xsl:text>(</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   307
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   308
      <xsl:with-param name="end_bracket">
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   309
        <xsl:text>)</xsl:text>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   310
      </xsl:with-param>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   311
    </xsl:call-template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   312
  </xsl:template>
be6c3a036844 Fixed xslt stylesheets with pretty print versions
Laurent Bessard
parents: 1347
diff changeset
   313
</xsl:stylesheet>