Thread: EPUB output
View Single Post
Old 01-29-2009, 04:28 PM   #307
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,467
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by llasram View Post
XML isn't all just fun and games you know. There are serious implications to adding new tags willy-nilly!
Aww shucks and here I was thinking XML parsing would be the new Betrayal at Krondor.

Quote:
What if the IDPF later adds a <series/> sub-element of <metadata/>, but specifies it as having a @name attribute for the series name and a text() of the (to calibre) series index?
Then I would have to paraphrase Obelix and say "These IDPF are crazy..."

Quote:
Ok, probably not, but OPF comes with a RelaxNG schema for validation, which schema only allows the tags explicitly allowed by the OPF specs, yah?. Even if any sane OPF processor would ignore parts it didn't understand, extra-tag errors are strictly errors and should be emitted by a validity checker. The presence of "non-error errors" in the checker output makes it harder for a human to read the checker's output and verify whether or not the file is in fact "valid enough".
That's really a sign that the validity checker's interface should be improved. But I agree, since it's an easy fix, we might as well fix it.


Quote:
Yeah... I'd actually vote for namespace-prefixing the Calibre-specific metadata in some fashion, to increase the chances of global uniqueness.
In an ideal world, yeah, but then epubchecker would cry.
kovidgoyal is offline   Reply With Quote