I have set up 2 Cloverleaf processes. Both read a file from disk, map the
file contents from some input format to some output format, then
the result is written back to disk.
I have been able to compile our XML schema into Cloverleaf. As a
test I have done the following:
Case 1:
Source File A —> Apply Mapping A —> Result File A
Source File A is a simple XML file that is based upon a simple
schema I have used for test purposes.
Mapping A maps Source File A from this simple test schema to
to our XML schema. The output from the mapping
is written to Result File A. This seems to work (at least for this simple
case). So, Result File A is a file that is based upon our XML schema.
Now I try the following:
Case 2:
Result File A —> Apply Mapping B (Fails)
Result File A is the result file from Case 1. It is in our standard XML format.
Mapping B is the opposite of Mapping A. It maps the input from our XML schema back to the simple test schema. However,
whenever I try Case 2, I get the following error in the Cloverleaf log
[xlt :xlat:ERR /0:process_03_xlate:03/27/2007 09:13:45] [0.0.6113] Xlate ‘xlt_xml_msg_all_to_xml_msg.xlt’ failed: Input validation errors: Error generated during parsing. – Unknown element ‘message’ – Line 1, Col 175
Note that ‘message’ is the root element of the XML schema.
Thanks in advance for your help.
Kelly