Project

General

Profile

« Previous | Next » 

Revision 1203

Added by nicolasboyer 10 months ago

update tranwf countdown

View differences:

branches/1.6-sc50/model/sources/mirage/web/transf/_xxx@countDown.xsl
7 7
		<xsl:if test="*/sp:countDown">
8 8
<script type="text/JavaScript">
9 9
countDownMgr.fTime = <xsl:call-template name="get_time">
10
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:time/sp:*"/>
10
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:time//sp:*"/>
11 11
</xsl:call-template>;
12 12
countDownMgr.fReset = <xsl:value-of select="if(local-name()='case','false','true')"/>;
13
countDownMgr.fActionAfterCountDown = <xsl:value-of select="if(*/sp:countDown/*/sp:actionAfterCountDown/sp:next,concat('&quot;',getUrl(gotoSubModel(*/sp:countDown/*/sp:actionAfterCountDown/sp:next)),'&quot;'),if(*/sp:countDown/*/sp:actionAfterCountDown/sp:end,'&quot;end&quot;',*/sp:countDown/*/sp:actionAfterCountDown/sp:attemptsNumber))"/>;<xsl:if test="*/sp:countDown/*/sp:display">
13
countDownMgr.fActionAfterCountDown = <xsl:value-of select="if(*/sp:countDown/*/sp:actionAfterCountDown//sp:next,concat('&quot;',getUrl(gotoSubModel(*/sp:countDown/*/sp:actionAfterCountDown//sp:next)),'&quot;'),if(*/sp:countDown/*/sp:actionAfterCountDown//sp:end,'&quot;end&quot;',*/sp:countDown/*/sp:actionAfterCountDown//sp:attemptsNumber))"/>;<xsl:if test="*/sp:countDown/*/sp:display">
14 14
countDownMgr.fDisplay = "<xsl:value-of select="*/sp:countDown/*/sp:display"/>";</xsl:if><xsl:if test="*/sp:countDown/*/sp:appearance">
15 15
countDownMgr.fAppearance = "<xsl:value-of select="*/sp:countDown/*/sp:appearance"/>";</xsl:if>
16
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:default">
17
countDownMgr.fVisibility = "<xsl:value-of select="*/sp:countDown/*/sp:behavior/sp:default"/>";</xsl:if>
18
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom">
19
countDownMgr.fCustomVisibility = {<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:firstVisibility">firstappearance:<xsl:call-template name="get_time">
20
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:firstVisibility/sp:*"/>
21
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility or */sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
22
</xsl:if><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility">intervalvisibility:<xsl:call-template name="get_time">
23
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility/sp:*"/>
24
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
16
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:default">
17
countDownMgr.fVisibility = "<xsl:value-of select="*/sp:countDown/*/sp:behavior//sp:default"/>";</xsl:if>
18
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom">
19
countDownMgr.fCustomVisibility = {<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:firstVisibility">firstappearance:<xsl:call-template name="get_time">
20
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:firstVisibility/sp:*"/>
21
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility or */sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
22
</xsl:if><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility">intervalvisibility:<xsl:call-template name="get_time">
23
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility/sp:*"/>
24
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
25 25
</xsl:if>
26
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">durationvisibility:<xsl:call-template name="get_time">
27
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility/sp:*"/>
26
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">durationvisibility:<xsl:call-template name="get_time">
27
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility/sp:*"/>
28 28
</xsl:call-template></xsl:if>};</xsl:if>
29 29
</script>
30 30
		</xsl:if>
branches/1.6-sc50/model/sources/mirage/web/transf/_xxx@countDownImg.xsl
8 8
			<div id="countDownImg">
9 9
<script type="text/JavaScript">
10 10
countDownMgr.fImages = [<xsl:for-each select="*/sp:countDown//sp:images/sp:img">{src:"<xsl:value-of select="getUrl(gotoSubModel(sp:src),'coach')"/>",time:<xsl:call-template name="get_time">
11
<xsl:with-param name="pNumber" select="sp:time/sp:*"/>
11
<xsl:with-param name="pNumber" select="sp:time//sp:*"/>
12 12
</xsl:call-template>}<xsl:if test="following-sibling::sp:img">,</xsl:if></xsl:for-each>];
13 13
</script>
14 14
			</div>
branches/1.6-sc50/model/sources/progress/gen/_web/transf/_xxx@countDown.xsl
7 7
		<xsl:if test="*/sp:countDown">
8 8
<script type="text/JavaScript">
9 9
countDownMgr.fTime = <xsl:call-template name="get_time">
10
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:time/sp:*"/>
10
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:time//sp:*"/>
11 11
</xsl:call-template>;
12 12
countDownMgr.fReset = <xsl:value-of select="if(local-name()='case','false','true')"/>;
13
countDownMgr.fActionAfterCountDown = <xsl:value-of select="if(*/sp:countDown/*/sp:actionAfterCountDown/sp:next,concat('&quot;',getUrl(gotoSubModel(*/sp:countDown/*/sp:actionAfterCountDown/sp:next)),'&quot;'),if(*/sp:countDown/*/sp:actionAfterCountDown/sp:end,'&quot;end&quot;',*/sp:countDown/*/sp:actionAfterCountDown/sp:attemptsNumber))"/>;<xsl:if test="*/sp:countDown/*/sp:display">
13
countDownMgr.fActionAfterCountDown = <xsl:value-of select="if(*/sp:countDown/*/sp:actionAfterCountDown//sp:next,concat('&quot;',getUrl(gotoSubModel(*/sp:countDown/*/sp:actionAfterCountDown//sp:next)),'&quot;'),if(*/sp:countDown/*/sp:actionAfterCountDown//sp:end,'&quot;end&quot;',*/sp:countDown/*/sp:actionAfterCountDown//sp:attemptsNumber))"/>;<xsl:if test="*/sp:countDown/*/sp:display">
14 14
countDownMgr.fDisplay = "<xsl:value-of select="*/sp:countDown/*/sp:display"/>";</xsl:if><xsl:if test="*/sp:countDown/*/sp:appearance">
15 15
countDownMgr.fAppearance = "<xsl:value-of select="*/sp:countDown/*/sp:appearance"/>";</xsl:if>
16
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:default">
17
countDownMgr.fVisibility = "<xsl:value-of select="*/sp:countDown/*/sp:behavior/sp:default"/>";</xsl:if>
18
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom">
19
countDownMgr.fCustomVisibility = {<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:firstVisibility">firstappearance:<xsl:call-template name="get_time">
20
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:firstVisibility/sp:*"/>
21
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility or */sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
22
</xsl:if><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility">intervalvisibility:<xsl:call-template name="get_time">
23
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:intervalVisibility/sp:*"/>
24
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
16
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:default">
17
countDownMgr.fVisibility = "<xsl:value-of select="*/sp:countDown/*/sp:behavior//sp:default"/>";</xsl:if>
18
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom">
19
countDownMgr.fCustomVisibility = {<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:firstVisibility">firstappearance:<xsl:call-template name="get_time">
20
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:firstVisibility/sp:*"/>
21
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility or */sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
22
</xsl:if><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility">intervalvisibility:<xsl:call-template name="get_time">
23
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:intervalVisibility/sp:*"/>
24
</xsl:call-template><xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">,</xsl:if>
25 25
</xsl:if>
26
<xsl:if test="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility">durationvisibility:<xsl:call-template name="get_time">
27
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior/sp:custom/sp:visibilityOptions/sp:durationVisibility/sp:*"/>
26
<xsl:if test="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility">durationvisibility:<xsl:call-template name="get_time">
27
<xsl:with-param name="pNumber" select="*/sp:countDown/*/sp:behavior//sp:custom/sp:visibilityOptions/sp:durationVisibility/sp:*"/>
28 28
</xsl:call-template></xsl:if>};</xsl:if>
29 29
</script>
30 30
		</xsl:if>
branches/1.6-sc50/model/sources/progress/gen/_web/transf/_xxx@countDownImg.xsl
8 8
			<div id="countDownImg">
9 9
<script type="text/JavaScript">
10 10
countDownMgr.fImages = [<xsl:for-each select="*/sp:countDown//sp:images/sp:img">{src:"<xsl:value-of select="getUrl(gotoSubModel(sp:src),'coach')"/>",time:<xsl:call-template name="get_time">
11
<xsl:with-param name="pNumber" select="sp:time/sp:*"/>
11
<xsl:with-param name="pNumber" select="sp:time//sp:*"/>
12 12
</xsl:call-template>}<xsl:if test="following-sibling::sp:img">,</xsl:if></xsl:for-each>];
13 13
</script>
14 14
			</div>
branches/1.6-sc50/model/tests/Topaze/sources/allItems/Cas.case
1 1
<?xml version="1.0"?>
2
<sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:opa="kelis.fr:opa"><opa:case><opa:caseM><sp:title>xcvcx</sp:title><sp:countDown><opa:countDownM><sp:time><opa:secondM><sp:second>10</sp:second></opa:secondM></sp:time><sp:actionAfterCountDown><opa:nextM><sp:next sc:refUri="/allItems/Etape_02.node"/></opa:nextM></sp:actionAfterCountDown></opa:countDownM></sp:countDown></opa:caseM><sp:start sc:refUri=""/></opa:case></sc:item>
2
<sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:opa="kelis.fr:opa">
3
	<opa:case>
4
		<opa:caseM>
5
			<sp:title>xcvcx</sp:title>
6
			<sp:countDown><opa:countDownM>
7
					<sp:time><opa:secondM>
8
							<sp:second>10</sp:second>
9
						</opa:secondM></sp:time>
10
					<sp:actionAfterCountDown><opa:nextM>
11
							<sp:next sc:refUri="/allItems/Etape_02.node"/>
12
						</opa:nextM></sp:actionAfterCountDown>
13
					<sp:display>rgt</sp:display>
14
					<sp:appearance>loud</sp:appearance>
15
					<sp:behavior><opa:defaultM>
16
							<sp:default>hidden</sp:default>
17
						</opa:defaultM></sp:behavior>
18
					<sp:images><sp:img><sp:src sc:refUri="/Exemple/res/arcSchema.png"/><sp:time><opa:secondM>
19
									<sp:second>10</sp:second>
20
								</opa:secondM></sp:time></sp:img></sp:images>
21
				</opa:countDownM></sp:countDown>
22
		</opa:caseM>
23
		<sp:start sc:refUri=""/>
24
	</opa:case>
25
</sc:item>

Also available in: Unified diff