From: <tom...@us...> - 2013-05-02 06:33:52
|
Revision: 9757 http://docbook.svn.sourceforge.net/docbook/?rev=9757&view=rev Author: tom_schr Date: 2013-05-02 06:33:45 +0000 (Thu, 02 May 2013) Log Message: ----------- Improved opf.spine with info variable Modified Paths: -------------- trunk/xsl/epub/docbook.xsl Modified: trunk/xsl/epub/docbook.xsl =================================================================== --- trunk/xsl/epub/docbook.xsl 2013-05-02 06:32:20 UTC (rev 9756) +++ trunk/xsl/epub/docbook.xsl 2013-05-02 06:33:45 UTC (rev 9757) @@ -711,13 +711,13 @@ </xsl:template> <xsl:template name="opf.spine"> - + <xsl:variable name="info" select="*/*[contains(local-name(.), 'info')][1]"/> <xsl:element namespace="http://www.idpf.org/2007/opf" name="spine"> <xsl:attribute name="toc"> <xsl:value-of select="$epub.ncx.toc.id"/> </xsl:attribute> - <xsl:if test="/*/*[cover or contains(name(.), 'info')]//mediaobject[@role='cover' or ancestor::cover]"> + <xsl:if test="$info/cover or $info//mediaobject[@role='cover' or ancestor::cover]"> <xsl:element namespace="http://www.idpf.org/2007/opf" name="itemref"> <xsl:attribute name="idref"> <xsl:value-of select="$epub.cover.id"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |