med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

409
active users

#xml

4 posts4 participants0 posts today

Sonderzeichen, #ZUGFeRD #LaTeX und #XML, aaargh! Warum haben ausgerechnet Firmennamen ein typisches Sonderzeichen, das in sed, LaTeX und XML jeweils escaped werden muss, und zwar unterschiedlich?

sed …
-e "s/FIRMA/${FIRMA/&/\\\\\\&}/g"
-e "s/XMLFIRMXML/${FIRMA/&/\\&}/g"

Der obere SED-Befehl ist für die Text-Anschrift im LaTeX, das untere für das XML. Der \\ ist NUR für das Escapen des & im SED.

Jetzt muss ich noch rausbekommen, wie ich die Expansion von ß in "\T1\ss " bei der Ausgabe von XML vermeide, dann ist es für Deutschland einsatzbereit (die anderen Umlaute gehen. Blöd, dass fast jede nicht abgekürzte Adresse in Deutschland ein ß enthält).

I have been doing #XML stuff this week, specifically #TEI. I know a lot of people don't really like #XSLT, but it reminded me that when you're working with something that's not just structured data but a stream of text where some or all of the markup is part of the flow then that hybrid imperative/declarative model works really well for representing the full range of transformations you might want to make.

Would be interested to know if there are good modern alternatives.

Continued thread

I hadn't heard of it before, but it turns out there's a style format called XSLT that allows the browser to translate an XML file into HTML with CSS styling for display purposes.

Since my feed is Atom rather than RSS, I had a bit of trouble, but this post was helpful:

andrewstiefel.com/style-atom-x

Andrew Stiefel · How to Style an Atom Feed with XSLT
More from Andrew Stiefel
#RSS#Atom#XML

I figured out how to get my RSS feed to be human-readable and nice-looking!

I'd been wanting to do this to give people who aren't familiar with RSS an easier on-ramp to the stuff I care about.

I figure if someone new to RSS clicks on the link and just gets raw XML, they might think something is “broken” and not stick around, but now there's something human-readable and with instructions on how to follow it in a reader.

reillyspitzfaden.com/feed.xml

#RSS#Atom#XML

Came up at work but definitely a question of general interest:

I feel like when looking at a line-by-line diff of an XML file, it's just...
really not super clear, even with highlighting and such. Is there any sort of graph-aware diff tool that might generate a visual graph and show the difference that way? So that rather than reviewing line by line, you can say "ah, a node has moved from being a child of this node to another", or "these two nodes have been merged into one".

I feel like it would be possible to gin something up in like, networkX or something, but if there's prior art...

#techPosting #XML #computerScienceTrees #graphs #diffs

#XML Namespaces Recommendation allows an XML document to be composed of elements and attributes from multiple independent namespaces. Each of these namespaces may have its own schema; the schemas for different namespaces may be in different schema languages. The problem then arises of how the schemas can be composed in order to allow validation of the complete document. This document proposes the Namespace Routing Language (NRL) as a solution to this problem. NRL is an evolution of the author's earlier Modular Namespaces (MNS) language.

relaxng.org/jclark/nrl.html

relaxng.orgNamespace Routing Language (NRL)

CMLXOM 4.11 has been released: doi.org/10.5281/zenodo.1510877

"Minor release, reverting to (the newer) xml-apis 1.4.01, updating to Joda time 2.14, and removing unused imports, updating deprecated code, and minimal added JavaDoc."

CMLXOM is a Java library for reading and writing Chemical Markup Language files

ZenodoCMLXOMMinor release, reverting to (the newer) xml-apis 1.4.01, updating to Joda time 2.14, and removing unused imports, updating deprecated code, and minimal added JavaDoc. Full Changelog: https://github.com/BlueObelisk/cmlxom/compare/cmlxom-4.10...cmlxom-4.11

I'm proud to announce the project I've been working on for the last two years - Xee: a modern implementation of XPath and XSLT in Rust.

I know XML isn't hip anymore but this is a programming language implementation in Rust, according to extensive specifications!

blog.startifact.com/posts/xee/

#RustLang #xml @thisweekinrust

Secret WeblogXee: A Modern XPath and XSLT Engine in RustI announce Xee, the implementation of XPath and XSLT in Rust that I've been working on for the last two years.