From: Martin H. <mh...@uv...> - 2014-03-18 12:57:32
|
Hi Sara, You might want to take a look at the Zotero project, and specifically its Translators, which are designed to convert bibliographic references between various formats: <https://www.zotero.org/support/dev/translators> You might find some code there that you can use. This is a notoriously difficult area, though. How is your source information encoded in TEI? Do you have <biblStruct>s, <bibl>s, <biblFull>s or full <teiHeader>s as a starting point? Cheers, Martin On 14-03-18 01:37 AM, Sara L. Uckelman wrote: > Hi all, > > I'm quite new to TEI/XML/eXist so this may be a basic question to ask, > but I didn't see anything like it in the archives. > > I have a number of XML files each containing bibliographic details for > a single source marked up in TEI. I want to convert these into > citations that display nicely in HTML. (Well, what I REALLY want is > something that will take bibtex citations, convert them into XML, > and then into HTML, but I suppose that's too much to ask for.) If > all the citations contained the same info, it would be easy to write > a function to return the citation with proper formatting, on the > basis of the citation key. But the sources I have are extremely > varied, and trying to embed in all the possibilities into if-then > clauses doesn't strike me as the most efficient. Surely this is > something that many people have done before, and there's some code- > base out there that I could adapt, rather than write my own? > > Thanks, > -Sara > |