[docbook-apps] epub: how to set linear = 0
Kindle requires that an epub file have itemref idref=cover linear=no/ in order for the Kindle file not to show the cover twice. In my output in content.opf I see the lines spine toc=ncxtoc itemref idref=cover linear=yes/ In the epub/docbook.xsl file I see a parameter at the top which says: xsl:param name=epub.cover.filename select=concat($epub.oebps.dir, 'cover', $html.ext)/ xsl:param name=epub.cover.id select='cover'/ xsl:param name=epub.cover.html select='cover.html' / xsl:param name=epub.cover.image.id select='cover-image'/ xsl:param name=epub.cover.linear select=0 / I would assume that for epub.cover.linear, if the value is 0, then linear is supposed to be no. But by default it seems to show a yes value in my output. If I change the parameter to xsl:param name=epub.cover.linear select=1 / I get the exact same result. Is this a bug? -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 http://www.robertnagle.info - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] epub: how to set linear = 0
On Sun, Apr 10, 2011 at 1:39 AM, Robert Nagle idiotprogram...@gmail.com wrote: I would assume that for epub.cover.linear, if the value is 0, then linear is supposed to be no. But by default it seems to show a yes value in my output. If I change the parameter to xsl:param name=epub.cover.linear select=1 / I get the exact same result. Is this a bug? Yes, try xsl:choose xsl:when test=$epub.cover.linear != 0 xsl:textyes/xsl:text /xsl:when xsl:otherwiseno/xsl:otherwise /xsl:choose - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] epub: how to set linear = 0
Thanks. If I copy the whole xsl:template name=opf.spine into customization layer and substitute the code, I get the same result. YES. However, if I changexsl:textyes /xsl:text to xsl:textno /xsl:text (so both options say No) then I see the linear=no in the output content.opf. for some reason that test is not working right. It's being caught at the top without going to the otherwise. Robert On Sun, Apr 10, 2011 at 11:10 AM, Keith Fahlgren abdela...@gmail.com wrote: On Sun, Apr 10, 2011 at 1:39 AM, Robert Nagle idiotprogram...@gmail.com wrote: I would assume that for epub.cover.linear, if the value is 0, then linear is supposed to be no. But by default it seems to show a yes value in my output. If I change the parameter to xsl:param name=epub.cover.linear select=1 / I get the exact same result. Is this a bug? Yes, try xsl:choose xsl:when test=$epub.cover.linear != 0 xsl:textyes/xsl:text /xsl:when xsl:otherwiseno/xsl:otherwise /xsl:choose -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 http://www.robertnagle.info - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org