1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

New note: XML adventures

This commit is contained in:
Rohan Kumar 2022-06-11 14:59:24 -07:00
parent 29dfdf34a7
commit 0a51e4d5e6
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -0,0 +1,16 @@
---
title: "XML adventures"
date: 2022-06-11T14:59:13-07:00
replyURI: "https://mk.nixnet.social/notes/91dz17okx7"
replyTitle: "Take a look at the xml:space attribute if you haven't"
replyType: "SocialMediaPosting"
replyAuthor: "Alexandra"
replyAuthorURI: "https://www.alm.website/me"
---
`xml:space` would make whitespace issues easier to handle and simplify [my current solution](https://git.sr.ht/~seirdy/seirdy.one/tree/master/item/scripts/xhtmlize-single-file.sh), but not everything supports XML namespaces; I want to keep this polygot HTML5 and XHTML5 markup for now.
Eventually Ill offer certain enhancements to the XHTML version (add `index.xhtml` to the URLs or remove `text/html` form your `Accept` header but include `application/xhtml+xml`) and Ive already made my Atom feeds a bit simpler, but theres a lot to do before then.
Ive added ActivityStreams, OStatus, and friends to my Atom feeds; maybe I could add them to my XHTML pages using namespaces, if RDFa doesnt work out. First I wanna try my hand at writing an ontology for webrings so people can mark up their webrings with RDFa/microdata. Thatll make it easy to do things like check for broken webrings or build cool visualizations of overlapping rings.
I should also try my hand at XSLT for the Atom feeds to get a baseline browser preview.