w3mepub

Text-based EPUB reader
git clone git://efe.kim/w3mepub
Log | Files | Refs | README | LICENSE

content.xsl (576B)


      1 <xsl:stylesheet version="1.0" encoding="UTF-8"
      2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      3 xmlns:opf="http://www.idpf.org/2007/opf"
      4 xmlns:dc="http://purl.org/dc/elements/1.1/">
      5 	<xsl:output method="text"/>
      6 	<xsl:template match="/opf:package">
      7 		<xsl:for-each select="opf:spine/opf:itemref">
      8 			<xsl:variable name="idsel" select="@idref"/>
      9 			<xsl:value-of select="$rootdir" />
     10 			<xsl:text>/</xsl:text>
     11 			<xsl:value-of select="/opf:package/
     12 			opf:manifest/opf:item[@id=$idsel]/@href"/>
     13 			<xsl:text>&#xa;</xsl:text>
     14 		</xsl:for-each>
     15 	</xsl:template>
     16 </xsl:stylesheet>