Comments on 2019-01-08 Archiving Google Plus Communities

Hi Alex,

I think you need

<xsl:variable name="parent" select="atom:id"/>
<xsl:apply-templates select="../atom:entry[./thread:in-reply-to[@ref=$parent]]"\>

and potentially an <xsl:with-param> or global variable to track nesting level (for replies-to-replies).

– Diederik van Arkel 2019-01-09 13:45 UTC


I tried that and the resulting index.html remained unchanged, sadly.

I think the two approaches are equivalent because the URL also identifies the thread. But sadly, neither my way nor your way actually work.

For anybody interested: remember you can clone the project from https://alexschroeder.ch/cgit/blogger-rss-to-html/ (and you’ll see that I switched the code to Diederik’s variant).

– Alex Schroeder 2019-01-09 14:43 UTC


When I add the following inside your xsl:choose I do see that these entries are found (at the correct point)..

<xsl:otherwise>
<xsl:text> {{{</xsl:text>

	      <xsl:if test="atom:author/atom:name">
		<xsl:value-of select="atom:author/atom:name"/>
	      </xsl:if>

	  <!-- entry content -->
	  <xsl:text>&#10;</xsl:text>
	  <div class="content">
	    <xsl:choose>
	      <xsl:when test="atom:content">
		<xsl:apply-templates select="atom:content"/>
	      </xsl:when>
	      <xsl:otherwise>
		<xsl:apply-templates select="atom:summary"/>
	      </xsl:otherwise>
	    </xsl:choose>

	    <!-- entry footer -->
	    <xsl:text>&#10;</xsl:text>
	    <div class="permalink">
	      <xsl:if test="atom:author/atom:name">
		<xsl:value-of select="atom:author/atom:name"/>
	      </xsl:if>
</div></div>

<xsl:text>}}} </xsl:text>
</xsl:otherwise>

– Diederik van Arkel 2019-01-09 19:08 UTC


I got some help from Martijn Vos on G+ who pointed out to me that my problem was actually earlier where I had my xsl:apply-templates.

The code at the repository should now work as expected and I can think about images and CSS and all the other details. :)

– Alex Schroeder 2019-01-10 07:36 UTC


Result is available!

– Alex Schroeder 2019-01-10 12:06 UTC


Fixed Javascript as well, so now J/K should work as well.

– Alex Schroeder 2019-01-10 16:19 UTC


Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy Policy for more information. See Info for text formatting rules. You can edit this page if you need to fix typos. You can subscribe to updates by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.