View Single Post
Old 07-26-2014, 06:42 AM   #11
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
It is not working for me: "calibre, version 1.46.0
ERROR: Unsupported file format: Editing files of type application/adobe-page-template+xml is not supported".

In content.opf I had this:

Code:
<item href="Misc/page-template.xpgt" id="pt" media-type="application/adobe-page-template+xml"/>
Whereas in the html files I had this (same epub):

Code:
<link href="../Misc/page-template.xpgt" rel="stylesheet" type="application/vnd.adobe-page-template+xml" />
Which matches the code change for this enhancement. So I changed content.opf to

Code:
<item href="Misc/page-template.xpgt" id="pt" media-type="application/vnd.adobe-page-template+xml"/>
which means I can now edit the xpgt.

My brief research suggest both forms (with and without the vnd prefix) are used, suggesting this requires a further code change to cater for the vnd prefix.
ShellShock is offline   Reply With Quote