File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
test/java/org/culturegraph/mf/morph Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 71
71
<element ref =" tns:macro" />
72
72
<element ref =" xi:include" />
73
73
</choice >
74
+ <attribute ref =" xml:base" />
74
75
</complexType >
75
76
</element >
76
77
Original file line number Diff line number Diff line change 236
236
</result >
237
237
</test-case >
238
238
239
+ <test-case name =" Issue 227: Should support xinclude for macros" >
240
+ <input type =" text/x-formeta" >
241
+ 1 { lit: in }
242
+ </input >
243
+ <transformation type =" text/x-metamorph+xml" >
244
+ <mm : metamorph version =" 1" >
245
+ <include xmlns =" http://www.w3.org/2001/XInclude" href =" issue227-should-support-xinclude-for-macros.xml" />
246
+ <mm : rules >
247
+ <mm : call-macro name =" test-macro" />
248
+ </mm : rules >
249
+ </mm : metamorph >
250
+ </transformation >
251
+ <result type =" text/x-formeta" >
252
+ 1 { lit: out }
253
+ </result >
254
+ </test-case >
255
+
239
256
</metamorph-test >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <macros xmlns =" http://www.culturegraph.org/metamorph" >
3
+ <macro name =" test-macro" >
4
+ <data source =" lit" >
5
+ <constant value =" out" />
6
+ </data >
7
+ </macro >
8
+ </macros >
You can’t perform that action at this time.
0 commit comments