blob: 83f3abd0b319e8ea6c5c1a1245e0efc1de268b97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version ="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> <!--
||
|| S P E C I F I C M A I N P A N E L S
||
-->
<xsl:template match="expression" mode="preview">
<todo/>
</xsl:template>
<xsl:template match="expression[parent::expression]" mode ="main-panel">
<xsl:if test="ancestor::expression/@step='expression'">
<Title text="Scilab expression">
<VBox>
<HBox><HTML><B>Scilab Expressions
<Glue/>
</HBox>
<xsl:for-each select="outputs">
<Table mode="cell" location="fixed" size="dynamic" listener="TableListener">
<tableChanged>
<xsl:call-template name="context"/>
</tableChanged>
<tableAdd insert="selection">
<xsl:call-template name="context"/>
<item value="0.0"/>
</tableAdd>
<tableDel delete="selection">
<xsl:call-template name="context"/>
</tableDel>
<tableCol title="" width="30" attr="label"/>
<tableCol title="Values" attr="value" editable="true"/>
<xsl:for-each select="item">
<tableRow label="{concat('y', format-number(position(), '0'))}" value="{@value}"/>
</xsl:for-each>
</Table>
</xsl:for-each>
<HBox><HTML><B>Input test values
<Glue/>
<Button text="Execute"/>
</HBox>
<xsl:for-each select="inputs">
<Table mode="cell" location="fixed" size="dynamic" listener="TableListener">
<tableChanged>
<xsl:call-template name="context"/>
</tableChanged>
<tableAdd>
<xsl:call-template name="context"/>
<item value="0.0"/>
</tableAdd>
<tableCol title="" width="30" attr="label"/>
<tableCol title="Values" attr="value" editable="true" />
<xsl:for-each select="item">
<tableRow label="{concat('u', format-number(position(), '0'))}" value="{@value}" />
</xsl:for-each>
</Table>
</xsl:for-each>
<HBox>
<xsl:call-template name="BooleanCheckBox">
<xsl:with-param name="attr-name">zero-crossing</xsl:with-param>
</xsl:call-template>
Use zero-crossing
<Glue/>
</HBox>
</VBox>
</Title>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
|