<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi, <br>
<br>
I tried to use the Metafacture test infrastructure. <br>
@Christoph: One reason not at least because I stumbled upon your
last change on the wiki [1]<br>
<br>
Things are working fine using formeta as input conditions (with
internal and external transformation morph transformation rules) [2]
[3]<br>
<br>
Although personally I prefer to use a formeta format in comparison
to Marc most of my colleagues are more familiar with Marc and I
would like to use these testcases to provide a better documentation
for our use cases (at the moment transformations).<br>
<br>
In metastream-readers.properties there is a<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
marcxml org.culturegraph.mf.stream.reader.MarcXmlReader entry<br>
which I tried to use [4] but even for various alternatives in the
input element of the testcase I get a parser exception. Looking into
the code the formeta result reader will be instantiated and is
getting the result condition which is correct formeta but the
exception<br>
java.lang.AssertionError:
org.culturegraph.mf.exceptions.FormatException: Parsing error at
position 1: >{<neuerWert…, No record found:<br>
is thrown. Don't know if it is related to a missing input item?<br>
<br>
My question:<br>
Is it possible to use Marc definitions for the input element in test
cases?<br>
<br>
@Christoph: thanks for your response on my last question related to
xml-schema extensions for metamorph functions . I think at the
moment I will go with my own Java type (not at least because I want
a solution) Once I'm more familiar with the infrastructure I try to
come back to it.<br>
<br>
Günter<br>
<br>
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://github.com/culturegraph/metafacture-core/wiki/Testing-Framework-for-Metamorph">https://github.com/culturegraph/metafacture-core/wiki/Testing-Framework-for-Metamorph</a><br>
[2]
<a class="moz-txt-link-freetext" href="https://github.com/guenterh/mfSandbox/blob/master/src/test/java/org/guenterH/discover/step1/morph/MarcFormetaGH.xml">https://github.com/guenterh/mfSandbox/blob/master/src/test/java/org/guenterH/discover/step1/morph/MarcFormetaGH.xml</a><br>
[3]
<a class="moz-txt-link-freetext" href="https://github.com/guenterh/mfSandbox/blob/master/src/test/java/org/guenterH/discover/step1/morph/DataSource.java">https://github.com/guenterh/mfSandbox/blob/master/src/test/java/org/guenterH/discover/step1/morph/DataSource.java</a><br>
[4]
<a class="moz-txt-link-freetext" href="https://github.com/guenterh/mfSandbox/blob/master/src/test/java/org/guenterH/discover/step1/morph/MarcXMLNotOkGH.xml">https://github.com/guenterh/mfSandbox/blob/master/src/test/java/org/guenterH/discover/step1/morph/MarcXMLNotOkGH.xml</a><br>
<pre class="moz-signature" cols="72">--
Universität Basel
Universitätsbibliothek
Günter Hipler
Projekt SwissBib
Schoenbeinstrasse 18-20
4056 Basel, Schweiz
Tel.: + 41 (0)61 267 31 12 Fax: ++41 61 267 3103
E-Mail <a class="moz-txt-link-abbreviated" href="mailto:guenter.hipler@unibas.ch">guenter.hipler@unibas.ch</a>
URL: <a class="moz-txt-link-abbreviated" href="http://www.swissbib.org">www.swissbib.org</a> / <a class="moz-txt-link-freetext" href="http://www.ub.unibas.ch/">http://www.ub.unibas.ch/</a> </pre>
</body>
</html>