Skip to content

Conversion failure due to unclear cause #49

@martinreynaert

Description

@martinreynaert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions