Re: Want to Omit Appendix from Epub... but...
Bob Stayton <[email protected]> Tue, 30 Aug 2022 23:08:25 -0700
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
--------------u4VHhqwTZXeQ7FLj01Ne1vGq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Mike, I would recommend you use profiling to omit the appendix when you process it for epub. If it isn't present, it won't trigger any references to it. You would not need to make any stylesheet changes. http://www.sagehill.net/docbookxsl/Profiling.html Bob On 8/30/2022 11:18 AM, Michael Urban wrote: > I have a docbook <book> that I am translating to epub, but I want > to omit the <appendix>. For HTML, the following suffices in > the stylesheet: > > <xsl:template match="d:appendix"/> > <xsl:template match="d:appendix" mode="toc"/> > > But of course doing this in the epub styleseet results in a bad > epub file because the contents.opf file still contains references > to the appendix (and its children) which is no longer present in > the epub. > > I tried playing the same trick by adding, > > <xsl:template match="d:appendix" mode="opf.manifest"> > > but this doesn't seem to do anything. This looks like one of those > things that should be 'easy if you know how' but I'm stumped. > Suggestions, please? > > Mike > > > --------------------------------------------------------------------- > To unsubscribe, e-mail:[email protected] > For additional commands, e-mail:[email protected] > > --------------u4VHhqwTZXeQ7FLj01Ne1vGq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p><font size="2"><font face="Helvetica, Arial, sans-serif">Hi Mike,</font></font></p> <p><font size="2"><font face="Helvetica, Arial, sans-serif">I would recommend you use profiling to omit the appendix when you process it for epub. If it isn't present, it won't trigger any references to it. You would not need to make any stylesheet changes.<br> </font></font></p> <p><font size="2"><font face="Helvetica, Arial, sans-serif"><a class="moz-txt-link-freetext" href="http://www.sagehill.net/docbookxsl/Profiling.html">http://www.sagehill.net/docbookxsl/Profiling.html</a><br> </font></font></p> <p><font size="2"><font face="Helvetica, Arial, sans-serif">Bob</font></font><br> </p> <div class="moz-cite-prefix">On 8/30/2022 11:18 AM, Michael Urban wrote:<br> </div> <blockquote type="cite" cite="mid:[email protected]"> <pre class="moz-quote-pre" wrap="">I have a docbook <book> that I am translating to epub, but I want to omit the <appendix>. For HTML, the following suffices in the stylesheet: <xsl:template match="d:appendix"/> <xsl:template match="d:appendix" mode="toc"/> But of course doing this in the epub styleseet results in a bad epub file because the contents.opf file still contains references to the appendix (and its children) which is no longer present in the epub. I tried playing the same trick by adding, <xsl:template match="d:appendix" mode="opf.manifest"> but this doesn't seem to do anything. This looks like one of those things that should be 'easy if you know how' but I'm stumped. Suggestions, please? Mike --------------------------------------------------------------------- To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> </pre> </blockquote> </body> </html> --------------u4VHhqwTZXeQ7FLj01Ne1vGq--