mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.9K
active users

#xslt

1 post1 participant0 posts today

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

Finally! My #Javascript planning module can access data from the German electronic AIP.

🙂 💪

Behind the scenes it downloads the current metadata from aip.dfs.de, updates the local AIXM files if necessary, and uses XSLT stylesheets to translate the original XML into JSON-compatible text.

*sigh*

XSLT 1.0 is rather... awkward... unwieldy. And JSON is not forgiving when it comes to control chars and dangling commas. Had to develop JSON building block templates.

My #XSLT sheets for the German AIP #AIXM data are ready. They transform the rather complex AIXM to an intermediate simpler form, allowing retrieval of official aerodrome data (runway dimensions, radio frequencies, supplies, services) and VOR/NDB information.

So far, so fine.

Intermediate form means another bunch of files to check for updates. 🤔

Well, let's modify the XSLT. Either pull lists of aerodromes or navaids, or retrieve data of a specific entity. Global xsl:param ftw!

Continued thread

2/

Ken wanted to teach his grandson the rules of baseball, but found the existing games inadequate. So he designed his own sets. They consist of six layers of birch with elaborate cutouts requiring precise registration as they are glued together. The layers are fabricated on a laser cutter available at his local library and driven by PDF files. Ken has automated the whole design and fabrication process using #XSLT to create #SVG files and shell scripts that make the PDFs for each layer.

1/

My friend Ken Holman isn't on Mastodon (yet), but he is known to several people who follow this account. I heard that he had become involved with "board games" somehow, so I got in touch to find out what he's up to.

You think you know #SVG and #XSLT geekery? Think again.

Replied in thread

@octade @infostorm @translators @bookstodon @academicchatter @theology @arraybolt3

gitlab.com/crosswire-bible-soc these are my repositories. CzeKMS (aka CzeCSP now) is by far the most complicated one. I have usually had very complicated #XSLT stylesheet to convert from the author XML to #OSIS, but it was unmaintainable and slow. Now with plain #Python SAX it works much better.

Also interesting is CzeBKR which is generated from Wikisource.

GitLabCrossWire Bible Society · GitLabGitLab.com