File tree Expand file tree Collapse file tree 1 file changed +38
-3
lines changed
src/test/java/org/culturegraph/mf/morph/functions Expand file tree Collapse file tree 1 file changed +38
-3
lines changed Original file line number Diff line number Diff line change 44
44
</result >
45
45
</test-case >
46
46
47
+ <test-case name =" isbn" >
48
+ <input type =" text/x-cg+xml" >
49
+ <cgxml : cgxml version =" 1.0" >
50
+ <cgxml : records >
51
+ <cgxml : record id =" 1" >
52
+ <cgxml : literal name =" isbn" value =" 123 invalid" />
53
+ </cgxml : record >
54
+ </cgxml : records >
55
+ </cgxml : cgxml >
56
+ </input >
57
+
58
+ <transformation type =" text/x-metamorph+xml" >
59
+ <mm : metamorph version =" 1" >
60
+ <mm : rules >
61
+ <mm : data source =" isbn" name =" withError" >
62
+ <mm : isbn to =" isbn13" errorString =" error" />
63
+ </mm : data >
64
+ <mm : data source =" isbn" name =" withoutError" >
65
+ <mm : isbn to =" isbn13" />
66
+ </mm : data >
67
+ </mm : rules >
68
+ </mm : metamorph >
69
+ </transformation >
70
+
71
+ <result type =" text/x-cg+xml" >
72
+ <cgxml : cgxml version =" 1.0" >
73
+ <cgxml : records >
74
+ <cgxml : record id =" 1" >
75
+ <cgxml : literal name =" withError" value =" error" />
76
+
77
+ </cgxml : record >
78
+ </cgxml : records >
79
+ </cgxml : cgxml >
80
+ </result >
81
+ </test-case >
82
+
47
83
<test-case name =" split" >
48
84
<input type =" text/x-cg+xml" >
49
85
<cgxml : cgxml version =" 1.0" >
50
86
<cgxml : records >
51
87
<cgxml : record id =" 1" >
52
- <cgxml : literal name =" data"
53
- value=" Oahu,Hawaii,Maui" />
88
+ <cgxml : literal name =" data" value =" Oahu,Hawaii,Maui" />
54
89
</cgxml : record >
55
90
</cgxml : records >
56
91
</cgxml : cgxml >
60
95
<mm : metamorph version =" 1" >
61
96
<mm : rules >
62
97
<mm : data source =" data" name =" island" >
63
- <mm : split delimiter =" ," />
98
+ <mm : split delimiter =" ," />
64
99
</mm : data >
65
100
66
101
</mm : rules >
You can’t perform that action at this time.
0 commit comments