equal
deleted
inserted
replaced
7 <xsl:template mode="var_edit" match="text()"/> |
7 <xsl:template mode="var_edit" match="text()"/> |
8 <xsl:template mode="var_debug" match="text()"/> |
8 <xsl:template mode="var_debug" match="text()"/> |
9 <xsl:variable name="project" select="ns:GetProject()"/> |
9 <xsl:variable name="project" select="ns:GetProject()"/> |
10 <xsl:variable name="stdlib" select="ns:GetStdLibs()"/> |
10 <xsl:variable name="stdlib" select="ns:GetStdLibs()"/> |
11 <xsl:variable name="extensions" select="ns:GetExtensions()"/> |
11 <xsl:variable name="extensions" select="ns:GetExtensions()"/> |
12 <xsl:variable name="all" select="$project | $stdlib | $extensions"/> |
12 <xsl:variable name="all_types" select="($project | $stdlib | $extensions)/ppx:types"/> |
13 <xsl:template name="add_root"> |
13 <xsl:template name="add_root"> |
14 <xsl:param name="class"/> |
14 <xsl:param name="class"/> |
15 <xsl:param name="type"/> |
15 <xsl:param name="type"/> |
16 <xsl:param name="edit"> |
16 <xsl:param name="edit"> |
17 <xsl:text>true</xsl:text> |
17 <xsl:text>true</xsl:text> |
203 </xsl:call-template> |
203 </xsl:call-template> |
204 </xsl:template> |
204 </xsl:template> |
205 <xsl:template mode="var_class" match="*[self::ppx:type or self::ppx:baseType]/ppx:derived"> |
205 <xsl:template mode="var_class" match="*[self::ppx:type or self::ppx:baseType]/ppx:derived"> |
206 <xsl:param name="default_class"/> |
206 <xsl:param name="default_class"/> |
207 <xsl:variable name="type_name" select="@name"/> |
207 <xsl:variable name="type_name" select="@name"/> |
208 <xsl:variable name="pou_infos" select="$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name]"/> |
208 <xsl:variable name="pou_infos" select="$all_types/ppx:pous/ppx:pou[@name=$type_name]"/> |
209 <xsl:choose> |
209 <xsl:choose> |
210 <xsl:when test="$pou_infos"> |
210 <xsl:when test="$pou_infos"> |
211 <xsl:apply-templates mode="var_class" select="$pou_infos"/> |
211 <xsl:apply-templates mode="var_class" select="$pou_infos"/> |
212 </xsl:when> |
212 </xsl:when> |
213 <xsl:otherwise> |
213 <xsl:otherwise> |
262 <xsl:template mode="var_edit" match="*[self::ppx:type or self::ppx:baseType]/*"> |
262 <xsl:template mode="var_edit" match="*[self::ppx:type or self::ppx:baseType]/*"> |
263 <xsl:text>false</xsl:text> |
263 <xsl:text>false</xsl:text> |
264 </xsl:template> |
264 </xsl:template> |
265 <xsl:template mode="var_debug" match="*[self::ppx:type or self::ppx:baseType]/ppx:derived"> |
265 <xsl:template mode="var_debug" match="*[self::ppx:type or self::ppx:baseType]/ppx:derived"> |
266 <xsl:variable name="type_name" select="@name"/> |
266 <xsl:variable name="type_name" select="@name"/> |
267 <xsl:variable name="datatype_infos" select=" $project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] | $all/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name] "/> |
267 <xsl:variable name="datatype_infos" select=" $project/ppx:types/ppx:pous/ppx:pou[@name=$type_name] | $all_types/ppx:dataTypes/ppx:dataType[@name=$type_name] "/> |
268 <xsl:choose> |
268 <xsl:choose> |
269 <xsl:when test="$datatype_infos"> |
269 <xsl:when test="$datatype_infos"> |
270 <xsl:apply-templates mode="var_debug" select="$datatype_infos"/> |
270 <xsl:apply-templates mode="var_debug" select="$datatype_infos"/> |
271 </xsl:when> |
271 </xsl:when> |
272 <xsl:otherwise> |
272 <xsl:otherwise> |