<title>{$title}
✓ Published0🌍 Public
CCliffordAnderson
Last edited Feb 16, 2014
Created on Feb 16, 2014
This example shows a data transformation that converts TEI-encoded metadata into MODS format, preserving bibliographic details such as title, author, language, publication origin, and abstract. The XQuery script, running on the eXist-db platform, uses the `fn:doc` function to read an XML file and XPath expressions to extract specific elements like `tei:titleStmt` and `tei:publicationStmt`. It then constructs a MODS record by mapping these values into the appropriate MODS elements, such as `<titleInfo>` and `<originInfo>`. The code relies on the standard XQuery 3.0 language features, with no external libraries or visualization APIs involved.
AI-generated description