From 0a51e4d5e683ab370f0dd18cbf402c98572bbd97 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 11 Jun 2022 14:59:24 -0700 Subject: [PATCH] New note: XML adventures --- content/notes/xml-adventures.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 content/notes/xml-adventures.md diff --git a/content/notes/xml-adventures.md b/content/notes/xml-adventures.md new file mode 100644 index 0000000..06e1185 --- /dev/null +++ b/content/notes/xml-adventures.md @@ -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 I’ll 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 I’ve already made my Atom feeds a bit simpler, but there’s a lot to do before then. + +I’ve added ActivityStreams, OStatus, and friends to my Atom feeds; maybe I could add them to my XHTML pages using namespaces, if RDFa doesn’t work out. First I wanna try my hand at writing an ontology for webrings so people can mark up their webrings with RDFa/microdata. That’ll 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.