I still don't quite understand what you need XSLT for?188BET靠谱吗XSLT is a transformation language, which I don't really see Zotero has any need for.188BET靠谱吗For import, Zotero has excellent support for xpaths, which were specifically designed for *parsing* XML, which is what Zotero import translators do.188BET靠谱吗I think technically Zotero javascript engine would allow an XSLT processor to run, though not (at least not currently) in translators.
Real case: I'm working on the XML/TEI export translator.Titles or notes allow rich text formatting in HTML.HTML namespace and TEI namespace are different.The actual translator deal with regex for titles, that could create XML malformations if elements are really appen to the dom
188BET靠谱吗https://github.com/zotero/translators/blob/master/TEI.js#L73 This way is not safe for all the html elements supported in notes (that a TEI consumer will be happy to have in his namespace).
Someone has probably thought about XSLT interdiction, there is surely a good reason, I'm curious of this reason.
188BET靠谱吗[JavaScript Error: "XSLTProcessor is not defined" {file: "chrome://zotero/content/xpcom/translation/translate_firefox.js line 425 > eval" line: 72}]
188BET靠谱吗Not exactly on point, but why don't you just export references as Zotero RDF (which is serialised as XML) and run XSLT on this output?188BET靠谱吗I use the opposite direction to prepare bibliographic data from TEI files for import into Zotero.The mapping required quite some tinkering but the resulting XSLT will make writing the reverse operation much easier:
https://github.com/OpenArabicPE/convert_tei-to-bibliographic-data
This is a good way for a complete library with an internal structure, but for an item, my idea was to improve the existing TEI translator for my users.
I know my cases, but not those of others.188BET靠谱吗If you had a set of zotero records, we could put them in a public zotero group.Goal of code is to export them as your desired TEI
.
188BET靠谱吗By the way, if XSLT was available inside zotero, you would be able to include your XSLT importers (
-> json -> zot db).
188BET靠谱吗https://github.com/zotero/translators/blob/master/TEI.js#L73
This way is not safe for all the html elements supported in notes (that a TEI consumer will be happy to have in his namespace).
Someone has probably thought about XSLT interdiction, there is surely a good reason, I'm curious of this reason.
188BET靠谱吗The zotero group
188BET靠谱吗//www.brodersterzo.com/groups/4571007/galenus-verbatim/library
The bibliography
https://galenus-verbatim.huma-num.fr/
This is a good way for a complete library with an internal structure, but for an item, my idea was to improve the existing TEI translator for my users.
188BET靠谱吗Yous seems to have lots of skills, are you interested to join the project of improving the default TEI.js export translator for Zotero ?
https://github.com/glorieux-f/translators/blob/tei_export/TEI.js
I know my cases, but not those of others.188BET靠谱吗If you had a set of zotero records, we could put them in a public zotero group.Goal of code is to export them as your desired TEI
188BET靠谱吗By the way, if XSLT was available inside zotero, you would be able to include your XSLT importers (