TEI export
Good morning,
I'd like to create a master bibliography for my project with Zotero, but when I export it into xml TEI, all the elements are diplayed on one single (and very long) line.
How can I solve this issue?
Many thanks for your help. Regards,
Alessio.
I'd like to create a master bibliography for my project with Zotero, but when I export it into xml TEI, all the elements are diplayed on one single (and very long) line.
How can I solve this issue?
Many thanks for your help. Regards,
Alessio.
Most TEI editors include an option to format and indent the contents of .xml files. I use Oxygen, and 'Format and Indent' may be found under 'Tools'. Clicking this should solve your problem.
Best wishes,
James
xmllint --format
will do it.I have some questions regarding the export to TEI:
- some weeks ago it was possible to export a library to TEI and create single documents for every entry. Now this seems not possible anymore. Can someone tell me why? Has there been a change in the export settings? Are export-options stable or may they change?
- in my export the TEI file does not validate correctly, the following errors are shown:
a) element "edition" not allowed here; expected the element end-tag or element "biblScope", "extent" or "imprint"
b) element "extent" not allowed yet; missing required element "imprint"
c) element "author" not allowed here; expected the element end-tag or element "biblScope", "extent" or "imprint"
Is there a bug in the export to TEI?
Many thanks for your help
Sulamith
More generally, export does change, but typically for extensions or bugfixes.
2. How exactly are you validating TEI? We've had no other reports of this, again, for multiple years. And are those consistent errors or limited to a specific item?
A) Right-Click/Export Library…
Format: TEI
All options checked (Export Notes, Export Tags, Generate XML IDs, Full TEI Document, Export Collections)
This returns a well-formed TEI, but it is both not valid against the TEI schema and missing all the items except for a tei:listBibl for each collection that contains nothing but the collection name as tei:title.
B) Select all items in the library and then: Right Click/Export Items…
Format: TEI
All options checked (see above)
This returns a well-formed TEI containing a single tei:listBibl with the same number of tei:biblStruct as my test library contained. Nevertheless, it is still not valid against the TEI schema, but in my case, it's only 16 errors reported in a library with 455 entries. The errors reported in my case, can be reduced to a single error, as all other errors reported a a consequence of it:
* tei:extent does not appear in the right location; in tei:monogr it appears as first-child instead of last-child
B) can probably be fixed very easily and would seem the more important one to fix (since it serves as a viable alternative to A)
TEI validation is not a big problem (there are public RNG schemas), what is difficult is semantics. Example of funny discussion in this community https://github.com/TEIC/TEI/issues/1788
I’m working on the TEI translator addressing those issues and others. The initial creator of the script has already done a big work, but some improvements are possible.