Skip to content
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

Conversion failure due to unclear cause #49

Open
martinreynaert opened this issue Mar 29, 2022 · 0 comments
Open

Conversion failure due to unclear cause #49

martinreynaert opened this issue Mar 29, 2022 · 0 comments

Comments

@martinreynaert
Copy link

Hi,

I get this:

(LMdev) reynaert@violet:MARXENGELS$ tei2folia -i -o '-' MarxEngels-A-2003_01-The_Collected_Works_of_Karl_Marx_and_Frederick_Engels_Early_Works_1835_1844_Volume_1-V0.xml
Instantiating XML parser
Converting MarxEngels-A-2003_01-The_Collected_Works_of_Karl_Marx_and_Frederick_Engels_Early_Works_1835_1844_Volume_1-V0.xml
VALIDATION ERROR on full parse by library in MarxEngels-A-2003_01-The_Collected_Works_of_Karl_Marx_and_Frederick_Engels_Early_Works_1835_1844_Volume_1-V0.xml
ParseError: FoLiA exception in handling of

@ line None (in parent
@ parent line None) : [ValueError] Unable to add object of type Caption to Division . Type not allowed as child.
Unable to convert MarxEngels-A-2003_01-The_Collected_Works_of_Karl_Marx_and_Frederick_Engels_Early_Works_1835_1844_Volume_1-V0.xml

I get a similar failure with another file, there the offending object is of type Table.

In this case, I have no idea what 'type Caption' is. Or how I might avoid that this conversion fails.

Please advise.

I attach the input file:

TEST.tei2folia.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant