@maelle @karawoo @aammd @jhollist and others -- I think emldown
is awesome ๐:tada: :tada: in the way it aims to create a standalone HTML representation of an EML document. I hope the work continues! I've been lurking as you develop the tool, and it seems that work has paused on trying to develop out a more complete XSLT for the complex EML structure.
We have developed an extensive XSLT for transforming EML to HTML, and we reuse that XSLT in multiple places, including our MetacatUI search application, and the Morpho metadata editor, among others. Have you considered re-using this XSLT to generate the base HTML, and then restyle that using CSS and other transforms that make it look how you would like in emldown?
At DataONE, we provide a view
service that can run a set of XSLT transforms on a document, and produce an HTML document for further processing. We then add styles to that, and rearrange it with various Javascript DOM manipulations to produce a final product. So, you can see the result of running our XSLT styes on a document by running the view
service to produce raw html. The same styles could definitely be run locally in R to produce inital HTML to be further styled and modified in emldown
.
Here is an example:
I see you have a bunch of our XSLT files checked into the emldown repo. We (@mbjones, @csjx, @mobb, @amoeba, and many others) been developing XSLT for EML for a long time, and would be happy to help consult on how to get past the significant bottleneck of getting the initial EML to HTML conversion working. Please let us know how we can help. And thanks for the awesome work!