View Single Post
Old 06-18-2010, 12:16 PM   #107
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
But what I have to do to achieve that is to delete the page-template, edit the OPF to remove it, and then edit ever XML file to remove the page-template from there. Granted, doing the XML removing is easy with Notepad++ as it allows me to load all the files I want and then do a search/replace on all of them at once. Also, I then have to edit the CSS (would have to do anyway). And finally, I have to delete the page-template from the ePub itself.
You already "delete the page-template" as the first step

Wouldn't it just be easier to edit the page-template to make it "empty"? That way you don't need to remove every reference to it. I don't know if a truly empty file would work, but something like this probably would:

Code:
<ade:template xmlns="http://www.w3.org/1999/xhtml" xmlns:ade="http://ns.adobe.com/2006/ade" xmlns:fo="http://www.w3.org/1999/XSL/Format">

</ade:template>
Quote:
I've not seen any use of page-template (yet) that could not be done in CSS.
In post #60 I showed something. It's not really a page-template, but conditional styling, but it still uses the same file. I've used it to hide "oeb-page-head" elements from ADE, which otherwise puts them in the main text flow...
Jellby is offline   Reply With Quote