cpee 1.3.177 → 1.3.178
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/ui.css +20 -3
- data/cockpit/{lib → css}/wfadaptor.css +0 -0
- data/cockpit/index.html +47 -22
- data/cockpit/js/details.js +18 -18
- data/cockpit/js/instance.js +50 -9
- data/cockpit/js/parameters.js +16 -15
- data/cockpit/js/ui.js +1 -4
- data/cockpit/js/wfadaptor.cpee.js +3 -20
- data/cockpit/{lib → js}/wfadaptor.js +39 -15
- data/cockpit/rngtest.html +14 -35
- data/cockpit/rngtest.rng +17 -39
- data/cockpit/rngtest.xml +7 -6
- data/cockpit/test.html +46 -0
- data/cockpit/testsets/Infinity.xml +28 -0
- data/cockpit/testsets/testsets.xml +1 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/controller.rb +8 -8
- data/lib/cpee/handler_properties.rb +1 -0
- data/lib/cpee/implementation.rb +9 -0
- data/lib/engine.xml +3 -3
- data/server/resources/topics.xml +3 -0
- data/test/{cb.rb → callback.rb} +0 -0
- metadata +8 -103
- data/cockpit/lib/custommenu.css +0 -84
- data/cockpit/lib/custommenu.js +0 -101
- data/cockpit/lib/jquery.browser.js +0 -40
- data/cockpit/lib/jquery.caret.min.js +0 -10
- data/cockpit/lib/jquery.cookie.js +0 -117
- data/cockpit/lib/jquery.min.js +0 -4
- data/cockpit/lib/jquery.svg.min.js +0 -6
- data/cockpit/lib/jquery.svgdom.min.js +0 -6
- data/cockpit/lib/parsequery.js +0 -19
- data/cockpit/lib/printf.js +0 -368
- data/cockpit/lib/relaxngui.js +0 -4
- data/cockpit/lib/strftime.min.js +0 -1
- data/cockpit/lib/ui.css +0 -261
- data/cockpit/lib/ui.js +0 -114
- data/cockpit/lib/underscore.min.js +0 -27
- data/cockpit/lib/util.js +0 -58
- data/cockpit/lib/wfadaptor-doc/demo1.html +0 -517
- data/cockpit/lib/wfadaptor-doc/demo2.html +0 -84
- data/cockpit/lib/wfadaptor-doc/index.html +0 -54
- data/server/instances/1/properties.xml +0 -113
- data/server/instances/10/properties.xml +0 -145
- data/server/instances/11/properties.xml +0 -169
- data/server/instances/12/properties.xml +0 -44
- data/server/instances/13/properties.xml +0 -146
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +0 -1
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +0 -1
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/subscription.xml +0 -23
- data/server/instances/14/properties.xml +0 -332
- data/server/instances/15/properties.xml +0 -44
- data/server/instances/16/properties.xml +0 -44
- data/server/instances/17/properties.xml +0 -44
- data/server/instances/18/properties.xml +0 -45
- data/server/instances/19/properties.xml +0 -45
- data/server/instances/2/properties.xml +0 -230
- data/server/instances/20/properties.xml +0 -46
- data/server/instances/21/properties.xml +0 -46
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +0 -1
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +0 -1
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +0 -23
- data/server/instances/22/properties.xml +0 -112
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +0 -1
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +0 -1
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +0 -23
- data/server/instances/23/properties.xml +0 -148
- data/server/instances/24/properties.xml +0 -66
- data/server/instances/25/properties.xml +0 -46
- data/server/instances/26/properties.xml +0 -112
- data/server/instances/27/properties.xml +0 -212
- data/server/instances/28/properties.xml +0 -363
- data/server/instances/29/properties.xml +0 -148
- data/server/instances/3/properties.xml +0 -109
- data/server/instances/30/properties.xml +0 -150
- data/server/instances/31/properties.xml +0 -52
- data/server/instances/32/properties.xml +0 -52
- data/server/instances/33/properties.xml +0 -60
- data/server/instances/34/properties.xml +0 -148
- data/server/instances/35/properties.xml +0 -148
- data/server/instances/36/properties.xml +0 -150
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret +0 -1
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret +0 -1
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml +0 -33
- data/server/instances/37/properties.xml +0 -57
- data/server/instances/38/properties.xml +0 -46
- data/server/instances/39/properties.xml +0 -58
- data/server/instances/4/properties.xml +0 -43
- data/server/instances/40/properties.xml +0 -148
- data/server/instances/41/properties.xml +0 -46
- data/server/instances/42/properties.xml +0 -148
- data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/consumer-secret +0 -1
- data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/producer-secret +0 -1
- data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/subscription.xml +0 -34
- data/server/instances/43/properties.xml +0 -148
- data/server/instances/44/properties.xml +0 -148
- data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/consumer-secret +0 -1
- data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/producer-secret +0 -1
- data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/subscription.xml +0 -34
- data/server/instances/45/properties.xml +0 -148
- data/server/instances/46/properties.xml +0 -46
- data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/consumer-secret +0 -1
- data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/producer-secret +0 -1
- data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/subscription.xml +0 -34
- data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/consumer-secret +0 -1
- data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/producer-secret +0 -1
- data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/subscription.xml +0 -34
- data/server/instances/47/properties.xml +0 -148
- data/server/instances/5/properties.xml +0 -23
- data/server/instances/6/properties.xml +0 -203
- data/server/instances/7/properties.xml +0 -149
- data/server/instances/8/properties.xml +0 -145
- data/server/instances/9/properties.xml +0 -145
- data/server/server.pid +0 -1
- data/test/delete.rb +0 -27
- data/test/load.rb +0 -55
- data/test/testset.xml +0 -297
data/test/load.rb
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
require 'rubygems'
|
3
|
-
require 'riddl/client'
|
4
|
-
require 'xml/smart'
|
5
|
-
require 'pp'
|
6
|
-
|
7
|
-
numinstances = 4
|
8
|
-
cpee = "http://localhost:9298/"
|
9
|
-
|
10
|
-
def create_instance(srv,name)
|
11
|
-
res = srv.resource("/")
|
12
|
-
status, response = res.post [
|
13
|
-
Riddl::Parameter::Simple.new("name","Performance #{name}")
|
14
|
-
]
|
15
|
-
ins = -1
|
16
|
-
if status == 200
|
17
|
-
ins = response.first.value
|
18
|
-
params = []
|
19
|
-
|
20
|
-
XML::Smart.open("testset.xml") do |doc|
|
21
|
-
doc.register_namespace 'desc', 'http://cpee.org/ns/description/1.0'
|
22
|
-
res = srv.resource("/#{ins}/properties/values")
|
23
|
-
#["transformation"].each do |item|
|
24
|
-
# status, response = res.post [
|
25
|
-
# Riddl::Parameter::Simple.new("property",item)
|
26
|
-
# ]
|
27
|
-
#end
|
28
|
-
["handlerwrapper","positions","dataelements","endpoints","transformation"].each do |item|
|
29
|
-
params << Riddl::Parameter::Simple.new("name",item)
|
30
|
-
params << Riddl::Parameter::Simple.new("content",doc.find("/testset/#{item}").first.dump)
|
31
|
-
end
|
32
|
-
["description"].each do |item|
|
33
|
-
params << Riddl::Parameter::Simple.new("name",item)
|
34
|
-
params << Riddl::Parameter::Simple.new("content","<content>" + doc.find("/testset/desc:#{item}").first.dump + "</content>")
|
35
|
-
end
|
36
|
-
params << Riddl::Parameter::Simple.new("name",'state')
|
37
|
-
params << Riddl::Parameter::Simple.new("value","running")
|
38
|
-
|
39
|
-
status, response = res.put params
|
40
|
-
end
|
41
|
-
end
|
42
|
-
ins
|
43
|
-
end
|
44
|
-
|
45
|
-
t = []
|
46
|
-
tim = Time.now.to_f
|
47
|
-
1.upto(numinstances) do |name|
|
48
|
-
# t << Thread.new(name) { |name|
|
49
|
-
srv = Riddl::Client.new(cpee)
|
50
|
-
puts create_instance(srv,name)
|
51
|
-
# }
|
52
|
-
end
|
53
|
-
|
54
|
-
#t.each { |k| k.join }
|
55
|
-
puts Time.now.to_f - tim
|
data/test/testset.xml
DELETED
@@ -1,297 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<testset>
|
3
|
-
<positions/>
|
4
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
|
-
<dataelements><!--{{{-->
|
6
|
-
<input>""</input>
|
7
|
-
<return>"%s World"</return>
|
8
|
-
</dataelements><!--}}}-->
|
9
|
-
<handlers/>
|
10
|
-
<endpoints/>
|
11
|
-
<description xmlns="http://cpee.org/ns/description/1.0"><!--{{{-->
|
12
|
-
<manipulate id="a1">data.return = data.return % data.input</manipulate>
|
13
|
-
</description><!--}}}-->
|
14
|
-
<transformation>
|
15
|
-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://cpee.org/ns/description/1.0">
|
16
|
-
<xsl:output method="text"/>
|
17
|
-
<xsl:strip-space elements="*"/>
|
18
|
-
<xsl:variable name="myspacemultiplier">2</xsl:variable>
|
19
|
-
|
20
|
-
<xsl:template match="/">
|
21
|
-
<xsl:apply-templates select="//d:description"/>
|
22
|
-
</xsl:template>
|
23
|
-
|
24
|
-
<xsl:template match="//d:description">
|
25
|
-
<xsl:apply-templates>
|
26
|
-
<xsl:with-param name="myspace"><xsl:value-of select="-1*$myspacemultiplier"/></xsl:with-param>
|
27
|
-
</xsl:apply-templates>
|
28
|
-
</xsl:template>
|
29
|
-
|
30
|
-
<xsl:template match="*">
|
31
|
-
<xsl:param name="myspace"/>
|
32
|
-
<xsl:call-template name="print-space">
|
33
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
34
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
35
|
-
</xsl:call-template>
|
36
|
-
<xsl:if test="name()='call' or name()='manipulate'">
|
37
|
-
<xsl:text>activity :</xsl:text>
|
38
|
-
<xsl:value-of select="@id"/>
|
39
|
-
</xsl:if>
|
40
|
-
<xsl:if test="name()='call'">
|
41
|
-
<xsl:text>, :call, :</xsl:text>
|
42
|
-
<xsl:value-of select="@endpoint"/>
|
43
|
-
<xsl:apply-templates select="d:parameters"/>
|
44
|
-
<xsl:apply-templates select="d:manipulate" mode="part-of-call">
|
45
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
|
46
|
-
</xsl:apply-templates>
|
47
|
-
<xsl:call-template name="print-newline"/>
|
48
|
-
</xsl:if>
|
49
|
-
<xsl:if test="name()='manipulate'">
|
50
|
-
<xsl:text>, :manipulate</xsl:text>
|
51
|
-
<xsl:call-template name="print-content">
|
52
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
|
53
|
-
</xsl:call-template>
|
54
|
-
<xsl:call-template name="print-newline"/>
|
55
|
-
</xsl:if>
|
56
|
-
<xsl:if test="name()='parallel'">
|
57
|
-
<xsl:text>parallel</xsl:text>
|
58
|
-
<xsl:if test="@wait">
|
59
|
-
<xsl:text> :wait => </xsl:text>
|
60
|
-
<xsl:value-of select="@wait"/>
|
61
|
-
</xsl:if>
|
62
|
-
<xsl:text> do</xsl:text>
|
63
|
-
<xsl:call-template name="print-newline"/>
|
64
|
-
<xsl:apply-templates>
|
65
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
66
|
-
</xsl:apply-templates>
|
67
|
-
<xsl:call-template name="print-space">
|
68
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
69
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
70
|
-
</xsl:call-template>
|
71
|
-
<xsl:text>end</xsl:text>
|
72
|
-
<xsl:call-template name="print-newline"/>
|
73
|
-
</xsl:if>
|
74
|
-
<xsl:if test="name()='loop'">
|
75
|
-
<xsl:text>loop </xsl:text>
|
76
|
-
<xsl:if test="@pre_test">
|
77
|
-
<xsl:text>pre_test{</xsl:text>
|
78
|
-
<xsl:value-of select="@pre_test"/>
|
79
|
-
<xsl:text>} </xsl:text>
|
80
|
-
</xsl:if>
|
81
|
-
<xsl:if test="@post_test">
|
82
|
-
<xsl:text>post_test{</xsl:text>
|
83
|
-
<xsl:value-of select="@post_test"/>
|
84
|
-
<xsl:text>} </xsl:text>
|
85
|
-
</xsl:if>
|
86
|
-
<xsl:text>do</xsl:text>
|
87
|
-
<xsl:call-template name="print-newline"/>
|
88
|
-
<xsl:apply-templates>
|
89
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
90
|
-
</xsl:apply-templates>
|
91
|
-
<xsl:call-template name="print-space">
|
92
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
93
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
94
|
-
</xsl:call-template>
|
95
|
-
<xsl:text>end</xsl:text>
|
96
|
-
<xsl:call-template name="print-newline"/>
|
97
|
-
</xsl:if>
|
98
|
-
<xsl:if test="name()='choose'">
|
99
|
-
<xsl:text>choose do</xsl:text>
|
100
|
-
<xsl:call-template name="print-newline"/>
|
101
|
-
<xsl:apply-templates>
|
102
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
103
|
-
</xsl:apply-templates>
|
104
|
-
<xsl:call-template name="print-space">
|
105
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
106
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
107
|
-
</xsl:call-template>
|
108
|
-
<xsl:text>end</xsl:text>
|
109
|
-
<xsl:call-template name="print-newline"/>
|
110
|
-
</xsl:if>
|
111
|
-
<xsl:if test="name()='group'">
|
112
|
-
<xsl:apply-templates>
|
113
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
114
|
-
</xsl:apply-templates>
|
115
|
-
<xsl:call-template name="print-newline"/>
|
116
|
-
</xsl:if>
|
117
|
-
<xsl:if test="name()='critical'">
|
118
|
-
<xsl:text>critical :</xsl:text>
|
119
|
-
<xsl:value-of select="@sid"/>
|
120
|
-
<xsl:text> do</xsl:text>
|
121
|
-
<xsl:call-template name="print-newline"/>
|
122
|
-
<xsl:apply-templates>
|
123
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
124
|
-
</xsl:apply-templates>
|
125
|
-
<xsl:call-template name="print-space">
|
126
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
127
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
128
|
-
</xsl:call-template>
|
129
|
-
<xsl:text>end</xsl:text>
|
130
|
-
<xsl:call-template name="print-newline"/>
|
131
|
-
</xsl:if>
|
132
|
-
</xsl:template>
|
133
|
-
|
134
|
-
<xsl:template match="d:alternative">
|
135
|
-
<xsl:param name="myspace"/>
|
136
|
-
<xsl:call-template name="print-space">
|
137
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
138
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
139
|
-
</xsl:call-template>
|
140
|
-
<xsl:text>alternative </xsl:text>
|
141
|
-
<xsl:value-of select="@condition"/>
|
142
|
-
<xsl:text> do</xsl:text>
|
143
|
-
<xsl:call-template name="print-newline"/>
|
144
|
-
<xsl:apply-templates>
|
145
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
146
|
-
</xsl:apply-templates>
|
147
|
-
<xsl:call-template name="print-space">
|
148
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
149
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
150
|
-
</xsl:call-template>
|
151
|
-
<xsl:text>end</xsl:text>
|
152
|
-
<xsl:call-template name="print-newline"/>
|
153
|
-
</xsl:template>
|
154
|
-
|
155
|
-
<xsl:template match="d:otherwise">
|
156
|
-
<xsl:param name="myspace"/>
|
157
|
-
<xsl:call-template name="print-space">
|
158
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
159
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
160
|
-
</xsl:call-template>
|
161
|
-
<xsl:text>otherwise do</xsl:text>
|
162
|
-
<xsl:call-template name="print-newline"/>
|
163
|
-
<xsl:apply-templates>
|
164
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
165
|
-
</xsl:apply-templates>
|
166
|
-
<xsl:call-template name="print-space">
|
167
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
168
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
169
|
-
</xsl:call-template>
|
170
|
-
<xsl:text>end</xsl:text>
|
171
|
-
<xsl:call-template name="print-newline"/>
|
172
|
-
</xsl:template>
|
173
|
-
|
174
|
-
<xsl:template match="d:parallel_branch">
|
175
|
-
<xsl:param name="myspace"/>
|
176
|
-
<xsl:call-template name="print-space">
|
177
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
178
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
179
|
-
</xsl:call-template>
|
180
|
-
<xsl:text>parallel_branch</xsl:text>
|
181
|
-
<xsl:if test="@pass">
|
182
|
-
<xsl:text> </xsl:text>
|
183
|
-
<xsl:value-of select="@pass"/>
|
184
|
-
</xsl:if>
|
185
|
-
<xsl:text> do</xsl:text>
|
186
|
-
<xsl:if test="@local">
|
187
|
-
<xsl:text> |</xsl:text>
|
188
|
-
<xsl:value-of select="@local"/>
|
189
|
-
<xsl:text>|</xsl:text>
|
190
|
-
</xsl:if>
|
191
|
-
<xsl:call-template name="print-newline"/>
|
192
|
-
<xsl:apply-templates>
|
193
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
194
|
-
</xsl:apply-templates>
|
195
|
-
<xsl:call-template name="print-space">
|
196
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
197
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
198
|
-
</xsl:call-template>
|
199
|
-
<xsl:text>end</xsl:text>
|
200
|
-
<xsl:call-template name="print-newline"/>
|
201
|
-
</xsl:template>
|
202
|
-
|
203
|
-
<xsl:template match="d:parameters">
|
204
|
-
<xsl:apply-templates select="d:*" mode="parameter"/>
|
205
|
-
</xsl:template>
|
206
|
-
|
207
|
-
<xsl:template match="d:*" mode="parameter">
|
208
|
-
<xsl:text>, :</xsl:text>
|
209
|
-
<xsl:value-of select="name()"/>
|
210
|
-
<xsl:text> => </xsl:text>
|
211
|
-
<xsl:choose>
|
212
|
-
<xsl:when test="count(*) > 0">
|
213
|
-
<xsl:text>[</xsl:text>
|
214
|
-
<xsl:apply-templates select="d:*" mode="sub-parameter"/>
|
215
|
-
<xsl:text>]</xsl:text>
|
216
|
-
</xsl:when>
|
217
|
-
<xsl:otherwise>
|
218
|
-
<xsl:choose>
|
219
|
-
<xsl:when test="@type = 'symbolic'">
|
220
|
-
<xsl:value-of select="text()"/>
|
221
|
-
</xsl:when>
|
222
|
-
<xsl:otherwise>
|
223
|
-
<xsl:text>"</xsl:text>
|
224
|
-
<xsl:value-of select="text()"/>
|
225
|
-
<xsl:text>"</xsl:text>
|
226
|
-
</xsl:otherwise>
|
227
|
-
</xsl:choose>
|
228
|
-
</xsl:otherwise>
|
229
|
-
</xsl:choose>
|
230
|
-
</xsl:template>
|
231
|
-
|
232
|
-
<xsl:template match="d:*" mode="sub-parameter">
|
233
|
-
<xsl:text> { :</xsl:text>
|
234
|
-
<xsl:value-of select="name()"/>
|
235
|
-
<xsl:text> => </xsl:text>
|
236
|
-
<xsl:value-of select="text()"/>
|
237
|
-
<xsl:text> }</xsl:text>
|
238
|
-
<xsl:choose>
|
239
|
-
<xsl:when test="generate-id(.) = generate-id(../*[last()])">
|
240
|
-
<xsl:text> </xsl:text>
|
241
|
-
</xsl:when>
|
242
|
-
<xsl:otherwise>
|
243
|
-
<xsl:text>,</xsl:text>
|
244
|
-
</xsl:otherwise>
|
245
|
-
</xsl:choose>
|
246
|
-
</xsl:template>
|
247
|
-
|
248
|
-
<xsl:template match="d:manipulate" mode="part-of-call">
|
249
|
-
<xsl:param name="myspace"/>
|
250
|
-
<xsl:call-template name="print-content">
|
251
|
-
<xsl:with-param name="myspace"><xsl:value-of select="$myspace"/></xsl:with-param>
|
252
|
-
</xsl:call-template>
|
253
|
-
</xsl:template>
|
254
|
-
|
255
|
-
<xsl:template name="print-content">
|
256
|
-
<xsl:param name="myspace"/>
|
257
|
-
<xsl:if test="text()">
|
258
|
-
<xsl:text> do </xsl:text>
|
259
|
-
<xsl:if test="@output">
|
260
|
-
<xsl:text>|</xsl:text>
|
261
|
-
<xsl:value-of select="@output"/>
|
262
|
-
<xsl:text>|</xsl:text>
|
263
|
-
</xsl:if>
|
264
|
-
<xsl:call-template name="print-newline"/>
|
265
|
-
<xsl:value-of select="text()"/>
|
266
|
-
<xsl:call-template name="print-newline"/>
|
267
|
-
<xsl:call-template name="print-space">
|
268
|
-
<xsl:with-param name="i">1</xsl:with-param>
|
269
|
-
<xsl:with-param name="count"><xsl:value-of select="$myspace+$myspacemultiplier"/></xsl:with-param>
|
270
|
-
</xsl:call-template>
|
271
|
-
<xsl:text>end</xsl:text>
|
272
|
-
</xsl:if>
|
273
|
-
</xsl:template>
|
274
|
-
|
275
|
-
<xsl:template name="print-space">
|
276
|
-
<xsl:param name="i"/>
|
277
|
-
<xsl:param name="count"/>
|
278
|
-
<xsl:if test="$i <= $count">
|
279
|
-
<xsl:text> </xsl:text>
|
280
|
-
<xsl:call-template name="print-space">
|
281
|
-
<xsl:with-param name="i">
|
282
|
-
<xsl:value-of select="$i + 1"/>
|
283
|
-
</xsl:with-param>
|
284
|
-
<xsl:with-param name="count">
|
285
|
-
<xsl:value-of select="$count"/>
|
286
|
-
</xsl:with-param>
|
287
|
-
</xsl:call-template>
|
288
|
-
</xsl:if>
|
289
|
-
</xsl:template>
|
290
|
-
<xsl:template name="print-newline">
|
291
|
-
<xsl:text>
|
292
|
-
</xsl:text>
|
293
|
-
</xsl:template>
|
294
|
-
|
295
|
-
</xsl:stylesheet>
|
296
|
-
</transformation>
|
297
|
-
</testset>
|