-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlapping Fields #10
Comments
Hi Darryl, This is very interesting - a case our unit tests must have missed. I'd also be interested in the SLX output to see where the error is happening. Is this a problem your company would needs particularly prompt resolution for? We do offer paid services. |
Nathanael, Here is what is in the .slx. (note that I have been adding whitespace for easier reading) <record> And these 2 log entries were seen during the conversion process. |
Nathanael, Cheers |
Quite strange. This shouldn't happen unless field2 is somehow classified as a 'context' element. This is the full XML, no tags or elements removed? If you can set up a unit test and send a PR that reproduces this, I can try to take a look at it the following week. |
One note, for clarity, the last word should be "field 2", not "field 1".
|
I've tried this exact set of fields and can't reproduce the problem on the develop branch. Which commit did you use to create this result? |
Sorry Nathanael, From your message 3 days ago, yes you are correct the last word should be "field 2". What did the .slx look like from your testing? We used the latest on the master branch at the time, early May 2015. I apologize, the following information would probably have been helpful earlier: we used IKVM compiler to build a .NET assembly from the Java byte code and now use/run the .net assembly to transform FFF. We did not include the overlapping field scenario in our initial testing with the java source and jars. |
Hi, thanks for making this tool available! We have been testing this out and came across the following.
I have overlapping fields in my source flat file; using the folioxml tool, the output is well-formed but the applied field boundaries are not the same as was in the source.
Thanks for your time.
Darryl
example source fff
<RD>
<FD:"field 1"><FD:"field 2">field 1 and field 2 </FD:"field 1"> field 1</FD:"field 2">
<FD:"field 1"> field 1 <FD:"field 2"> field 1 and field 2</FD:"field 1"> field 2</FD:"field 2">
output (xml)
<record>
<span class="field1" type="field 1"><span class="field2" type="field 2">field 1 and field 2 field 1</span>
<span class="field1" type="field 1"> field 1 <span class="field2" type="field 2">field 1 and field 2 field 2</span>
</span>
</span>
</record>
The text was updated successfully, but these errors were encountered: