Hiya Guilers, Having just wrapped up the Scribble Jam project I mentioned in my Guix Days talk on the Guile Docs makeover, I'm getting back to the topic of the documentation. I figured this is a good excuse to finally move my hiney and finally do something I've been putting off for the simple reason I find writing HTML a bore -- creating a blog where I can collect all these thoughts and tips to help improve the Guix/Guile knowledge ecosystem.
So of course, I figured I will try to make the web process less boring by doing it in Guile, and naturally went to the SXML docs, as I've had some ideas for a Guile extension that combines ideas from structured writing to make an easy and fun documentation and tutorial system that can be queried from the Guile repl. I could kill two bird with one stone! So I thought... This lead me to spend the last two nights learning XSLT and XHTML. I read Peter Bex's dynamic web tutorial, and then started hitting the XSLT textbooks. And after two nights and several hundred loc, I had as you may imagine, a poor skeleton of a website from 1995. Jeez, I thought, how much work are they doing to write the Guix website in Guile? They're really sticking to XHTML? Usually I'm not the type that heads straight to examples. I typically want to get away from the world with something new, try to study it on my own, and then later look to what others are doing. In this case, that lead me to try to poke at figuring out an sxml->html transformation myself, digging through Oleg Kisleyovs papers, and various ancient texts on the merits of XHTML, XSLT, XPath, etc... but it became clear that XML really isn't just a simple markup format that can be learned quickly, and my total lack of web skills weren't going to ramp up quickly enough to go from a "My First Geocities" aesthetic to the beautiful read I had been scheming up in my imagination. Finally I caved and decided to look at the Bootstrappable source code, and voila! (haunt html) provides sxml->html... the piece of the puzzle I was missing. Massive, near comical, relief. I'd like to suggest that, with Dave Thompson's approval, we could incorporate this function into Guile as I can imagine others going through a similar process. SXML remains a powerful tool, but without a modern way to get your results on screen it can appear archaic. But also, as someone who doesn't work in web *at all*, I don't really know how often HTML changes and how much of a burden the maintenance could be for the maintainers. So if its likely to become a fussy hairball, I understand. But I do think it could be an extremely helpful addition to (sxml simple), which also is in need of documentation, so if folks would agree this would be useful I'd be happy to, in turn, provide documentation for the currently missing SXML page, covering all the functions in (sxml simple). WDYT? ez, b -- Blake Shaw Director, SWEATSHOPPE sweatshoppe.org ---