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.
  • Dear 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
  • For a quick reformat of a not too large file, https://www.freeformatter.com/xml-formatter.html will likely do. If you need to do this often, and you don't mind/prefer the command line, xmllint --format will do it.
  • TEI export for record type "Manuscript" (and other types as well) does NOT include the following fields: Author, Type, # of pages, Language, Archive, Loc. in Archive, Library Catalog, Rights, Extra, Attached link to URL. Could that be changed?
  • bwb
    edited September 28, 2020
    Moreover TEI export does not include the abstract filed
  • If author isn't included, that'd be a bug. For all the others, I don't see how they'd be part of the biblStruct element in TEI that Zotero exports to
  • Dear all,
    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
  • 1. Nothing relevant in the TEI export has changed for years. My best guess is you're remembering this incorrectly - Zotero export has always produced one file for a single export operation.
    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?
Sign In or Register to comment.