View Full Version : Is <i> and <b> inside metadata possible?

03-01-2011, 11:03 PM
Lets say I'm inserting a Book Blurb into the metadata in the content.OPF file

<dc:description>This is the Blurb for my book,

It's a really really nice looking blurb, which has some quote and stuff in it, which
I want to make <i>italic</i> and maybe have some <b>Bold</b> in there as well...

epubcheck throws up an error:

content.opf(15): unknown element "i" from namespace ""

So does anybody know of a way to get the result I'm after???


03-01-2011, 11:56 PM
In order to get it to pass validation, you'd have to add an html namespace declaration somewhere and write the tags as <html:i>.

I'm not sure it would display in any meaningful manner, and there's always the possibility that a reader app might balk at opening the ePub if it thinks the metadata's wonky.

03-02-2011, 05:03 PM
Thanks, Mate, I'll just leave it out...

03-02-2011, 11:11 PM
That's the best option.

The metadata is specifically designed to be machine, not human readable. Don't add complexity where it's not useful (and might mess things up)!