Commit 5f50b2a5 authored by Stephan Kreutzer's avatar Stephan Kreutzer

wakelet_to_pdf_1: Pagination.

parent 0bc8ba14
......@@ -21,11 +21,14 @@ along with wakelet_downloader_1. If not, see <http://www.gnu.org/licenses/>.
<xsl:template match="/">
<xsl:comment> This file was generated by jsonxml_preparation_stylesheet_wake.xsl of wakelet_downloader_1, which is free software licensed under the GNU Affero General Public License 3 or any later version (see https://gitlab.com/publishing-systems/clients/ and http://www.publishing-systems.org). </xsl:comment><xsl:text>&#xA;</xsl:text>
<wakelet>
<wake>
<xsl:apply-templates/>
</wake>
</wakelet>
<page>
<xsl:if test=".//object[@name='_links']/object[@name='next']/object[@name='href']">
<xsl:attribute name="next">
<xsl:value-of select=".//object[@name='_links']/object[@name='next']/object[@name='href']"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</page>
</xsl:template>
<xsl:template match="//array[@name='items']/object">
......@@ -38,11 +41,11 @@ along with wakelet_downloader_1. If not, see <http://www.gnu.org/licenses/>.
</note>
</xsl:when>
<xsl:when test="./object[@name='summary']/object[@name='type']/text() = 'savedCollection'">
<wake>
<sub-wake>
<xsl:attribute name="url">
<xsl:apply-templates select="./object[@name='summary']/object[@name='url']"/>
</xsl:attribute>
</wake>
</sub-wake>
</xsl:when>
</xsl:choose>
</xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment