File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed
src/test/java/org/culturegraph/mf/morph Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 86
86
<input type =" text/x-cg+xml" >
87
87
<cgxml : cgxml version =" 1.0" >
88
88
<cgxml : records >
89
- <cgxml : record id =" 1 " >
89
+ <cgxml : record id =" entity end info " >
90
90
<cgxml : entity name =" e1" >
91
91
<cgxml : entity name =" e2" >
92
92
<cgxml : literal name =" d" value =" a" />
111
111
<result type =" text/x-cg+xml" >
112
112
<cgxml : cgxml version =" 1.0" >
113
113
<cgxml : records >
114
- <cgxml : record id =" 1 " >
114
+ <cgxml : record id =" entity end info " >
115
115
<cgxml : literal name =" e1.e2.d" value =" a" />
116
116
<cgxml : literal name =" e1.e2" value =" " />
117
117
<cgxml : literal name =" e1" value =" " />
Original file line number Diff line number Diff line change 3
3
xmlns=" http://www.culturegraph.org/metamorph-test" xmlns : mm =" http://www.culturegraph.org/metamorph"
4
4
xmlns:cgxml=" http://www.culturegraph.org/cgxml" >
5
5
6
-
7
-
8
6
<test-case name =" regexp" >
9
7
<input type =" text/x-cg+xml" >
10
8
<cgxml : cgxml version =" 1.0" >
44
42
</cgxml : cgxml >
45
43
</result >
46
44
</test-case >
45
+
46
+ <test-case name =" substring" >
47
+ <input type =" text/x-cg+xml" >
48
+ <cgxml : cgxml version =" 1.0" >
49
+ <cgxml : records >
50
+ <cgxml : record id =" 1" >
51
+ <cgxml : literal name =" a" value =" 012345" />
52
+ </cgxml : record >
53
+ </cgxml : records >
54
+ </cgxml : cgxml >
55
+ </input >
56
+
57
+ <transformation type =" text/x-metamorph+xml" >
58
+ <mm : metamorph version =" 1" >
59
+ <mm : rules >
60
+ <mm : data source =" a" >
61
+ <mm : substring start =" 3" end =" 5" />
62
+ </mm : data >
63
+ </mm : rules >
64
+ </mm : metamorph >
65
+ </transformation >
66
+
67
+ <result type =" text/x-cg+xml" >
68
+ <cgxml : cgxml version =" 1.0" >
69
+ <cgxml : records >
70
+ <cgxml : record id =" 1" >
71
+ <cgxml : literal name =" a" value =" 34" />
72
+ </cgxml : record >
73
+ </cgxml : records >
74
+ </cgxml : cgxml >
75
+ </result >
76
+ </test-case >
47
77
48
78
<test-case name =" constant" >
49
79
<input type =" text/x-cg+xml" >
You can’t perform that action at this time.
0 commit comments