-
Notifications
You must be signed in to change notification settings - Fork 12
/
functions.local.xslt
124 lines (119 loc) · 3.51 KB
/
functions.local.xslt
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='2.0'
xmlns:xhtml="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:zenta="http://magwas.rulez.org/zenta">
<xsl:output method="xml" version="1.0" encoding="utf-8"
indent="yes" omit-xml-declaration="yes" />
<!--xsl:template match="element[@xsi:type='Ada:varlistentry']" mode="elementTitle">
<xsl:value-of select="@name"/> </xsl:template> <xsl:template match="element[@id='basicobject']|connection[@id='basicrelation']"
mode="varlistentry"> </xsl:template> <xsl:template match="folder[property[@key='display']/@value='hidden']"
mode="varlist"/ -->
<xsl:function name="zenta:engineErrorDescription">
<xsl:param name="entry" />
<xsl:param name="other" />
<xsl:variable name="testcase"
select="$entry/object/testcase" />
Unimplemented behaviour.
<variablelist>
<varlistentry>
<term>related feature:</term>
<listitem>
<para>
<ulink url="#{$testcase/@featureid}">
<xsl:value-of select="$testcase/@feature" />
</ulink>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>related operation:</term>
<listitem>
<para>
<ulink url="#{$testcase/@operationid}">
<xsl:value-of select="$testcase/@operation" />
</ulink>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>related behaviour:</term>
<listitem>
<para>
<ulink url="#{$testcase/@testcaseid}">
<xsl:value-of select="$testcase/@testcase" />
</ulink>
</para>
</listitem>
</varlistentry>
</variablelist>
<xsl:choose>
<xsl:when test="$testcase/@featureid">
issue markup:
<para>
Behaviour:
<xsl:value-of select="$testcase/@feature" />
/
<xsl:value-of select="$testcase/@operation" />
;
<xsl:value-of select="$testcase/@testcase" />
</para>
<para>
@TestedFeature("
<xsl:value-of select="$testcase/@feature" />
")
</para>
<para>
@TestedOperation("
<xsl:value-of select="$testcase/@operation" />
")
</para>
<para>
@TestedBehaviour("
<xsl:value-of select="$testcase/@testcase" />
")
</para>
<para>
<xsl:value-of select="$testcase" />
</para>
<para>
[Deviation in
model](http://adadocs.demokracia.rulez.org/PDEngine/edemo/master/index.html#
<xsl:value-of select="zenta:engineErrorId($entry)" />
)
</para>
</xsl:when>
<xsl:otherwise>
issue markup:
[Deviation in
model](http://adadocs.demokracia.rulez.org/PDEngine/edemo/master/index.html#
<xsl:value-of select="$entry//object/testcase/@name" />
)
</xsl:otherwise>
</xsl:choose>
</xsl:function>
<xsl:function name="zenta:engineErrorId">
<xsl:param name="entry" />
<xsl:variable name="testcase"
select="$entry/object/testcase" />
<xsl:choose>
<xsl:when test="$testcase/@featureid">
<xsl:value-of
select="concat($testcase/@featureid,'-',$testcase/@operationid,'-',$testcase/@testcaseid)" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$testcase/@name" />
</xsl:otherwise>
</xsl:choose>
</xsl:function>
<xsl:function name="zenta:engineErrorTitle">
<xsl:param name="entry" />
<xsl:variable name="testcase"
select="$entry/object/testcase" />
<xsl:value-of
select="concat('Unimplemented feature',':',$testcase/@name)" />
</xsl:function>
</xsl:stylesheet>