1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-18 06:42:10 +00:00
seirdy.one/content/notes/xml-adventures.md

17 lines
1.3 KiB
Markdown
Raw Normal View History

2022-06-11 21:59:24 +00:00
---
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.