View Single Post
Old 12-05-2022, 02:05 PM   #1
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
A question about templates

I use a template for covers, but the header of that one is for epub3.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
And when I have to add a cover for an epub2, the generated cover by Sigil instead of having a header for epub2

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
has the header of an epub3. My question is: how must I do in order to have TWO templates for covers, one for epub2 (for example, cover2.xhtml) and one for epub3 (for example, cover3.xhtml), so Sigil can employ cover2.xhtml if I add a cover for an epub2 and cover3.xhtml if I add a cover for an epub3.

Or maybe Sigil can handle that with only one template, by changing the respective header but I don't know how to enable that feature, if it exists.

Last edited by RbnJrg; 12-05-2022 at 02:10 PM.
RbnJrg is offline   Reply With Quote