Hi everyone...I'm currently writing an edit plugin for my own use called Split2TOC. This plugin only works on imported html files and does the following:
* Splits the html file into separate xhtml files at heading boundaries
* Allows you to choose which heading style to use to split your file
* Adds the guides for cover, TOC and begin read(set to Chapter 1 or default)
* Removes any existing doc TOC
* Creates a Level 1 TOC file in the epub
* Creates a TOC CSS
* Adds the book cover
* Adds the metadata
Everything is working fine except when I try to add the epub metadata using
setmetadataxml().
Here is my function that tries to set the metadata in the epub:
And this is what I get in the epub opf metadata section after running that function:
As you can see, the 'dc:' tag prefix/suffix is missing on all metadata items in the epub. It appears that setmetadaxml() is deliberately removing 'dc:' from my data. What am I missing or is this a known problem with
setmetadataxml()? Any ideas?