Do I know anybody who knows and has some time to help me out? I’m trying to figure out how to use XSLT to transform a Google+ Community export (the Blogger Feed format) into a static HTML. The code I have already does that for posts but I have trouble doing it for comments, too. Example XML, XSLT, link to git repo, all on my blog post:

Β· Web Β· 2 Β· 4 Β· 1


You have the right idea, you need to get the right select line.

But, unless you really need XSLT -- and for a one-time translation, you really don't -- using any real programming language you're familiar with is going to be faster and easier.

I've done a bit of XSLT stuff, but I've only managed by using the simplest of select lines.

Oh, and when I used XSLT? I needed to preprocess it to get it how I wanted.

@yam655 Yeah, I'm starting to think I should just use the JSON export and some Perl to get it right. Ideally I'd also offer it to other G+ refugees, but perhaps Perl 5 is still OK enough. I mean, having xsltproc installed is basically just as obscure a requirement. πŸ˜ƒ


Is the XSLT available in xsltproc still just 1.0? That was one of the reasons for pre/post processing. Some things would be possible with current versions of XSLT, just not with xsltproc.

macOS currently ships with Perl 5.18.2. When major OSes include it out of the box, you probably don't need to fret too much about its use. :ms_wink:​

@yam655 Hehe, good point. I guess if I use Perl I might as well write a little wep app where people can upload their archives or something like that.


Diederik van Arkel's comment looks closer to right to me, but without setting up and running it it's hard to be certain if that's everything.

But I think they're right that "atom:id" is what's being used for the connecting value and that the comment holds that value in a "ref" attribute, not "href".

@paregorios Well, I think they are equivalent, because the URL also identifies the thread. But sadly, neither my way nor his way actually work. If you want to run it, you can clone it from here: (and you'll see that I switched the code to Diederik's variant).

Sign in to participate in the conversation

Octodon is a nice general purpose instance. more