-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #205: Exception during Metamorph build
The refactored Metamorph builder failed to build scripts with collectors which use `flushWith` and `<postprocess>`. Such scripts could no longer be built but the builder aborted with an exception. The exception was caused be the builder attempting to register the `flushWith` with the end of the last function in the `<postprocess>` element instead of with the collector.
- Loading branch information
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metamorph-test version="1.0" | ||
xmlns="http://www.culturegraph.org/metamorph-test"> | ||
|
||
<test-case name="custom entity marker"> | ||
<input type="text/x-formeta"> | ||
1 { inLit: value } | ||
</input> | ||
|
||
<transformation type="text/x-metamorph+xml"> | ||
<metamorph version="1" entityMarker="." | ||
xmlns="http://www.culturegraph.org/metamorph"> | ||
<rules> | ||
<combine name="outLit" value="${V}" flushWith="record"> | ||
<data name="V" source="inLit" /> | ||
<postprocess> | ||
<case to="upper"/> | ||
</postprocess> | ||
</combine> | ||
</rules> | ||
</metamorph> | ||
</transformation> | ||
|
||
<result type="text/x-formeta"> | ||
1 { outLit: VALUE } | ||
</result> | ||
</test-case> | ||
|
||
</metamorph-test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters