Changes

Jump to: navigation, search

C4lMW14 - Code4Lib Journal as epub

618 bytes added, 19:53, 23 July 2014
no edit summary
Idea came from: https://blogs.aalto.fi/blog/epublishing-with-pandoc/
 
 
 
 
 
Jon's quick & crazy hack...
get_links.xsl
{code}
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
 
<xsl:template match="fullTextUrl">
<xsl:value-of select="." /><xsl:text>
</xsl:text>
</xsl:template>
 
<xsl:template match="text()" />
 
</xsl:stylesheet>
{code}
 
{code}
wget http://journal.code4lib.org/issues/issue1/feed/doaj
mv doaj toc.xml
xsltproc get_links.xslt toc.xml | xargs -n 1 -i{} wget -r -l 1 --no-parent {}
xsltproc get_links.xslt toc.xml | xargs -n 1 -i{} wget -r -l 1 -A jpg,jpeg,png,gif {}
 
{code}
98
edits

Navigation menu