1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-26 02:22:09 +00:00
seirdy.one/content/notes/xml-adventures.md
2022-06-11 14:59:24 -07:00

16 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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.