← Back to team overview

calibre-devs team mailing list archive

Re: OPF meta/@name namespacing

 

Merged. I really don't care one way or another. All I need is the ability to 
go from (almost) arbitrarily bad OPF -> MetaInformation and from 
MetaInformation -> reasonably good OPF. As long as you don't mess with that, 
feel free to tinker around as much as you want.

As you can probably tell, I think XML takes itself way too seriously.  ;-)

Kovid.
 

On Friday 30 January 2009 15:45:03 Marshall T. Vandegrift wrote:
> On Fri, Jan 30, 2009 at 11:56 AM, Kovid Goyal <kovid@xxxxxxxxxxxxxx> wrote:
> >> My alternative proposal is to just prefix the @name values with
> >> 'calbre-'.  The '-' won't be mistaken for a namespace prefix
> >> separator and is consistent with how OEBPS 1.x OPF @name values were
> >> made pseudo unique (at least as expressed in MS LIT files).
> >
> > That's fine by me.
>
> At the risk of being even crazier, I went ahead and implemented my
> original proposal.  The implementation in metadata.opf2 handles the
> 'calibre:' prefix pretty much exactly like it would 'calibre-', which
> should be good enough for typical book-reader users.  The implementation
> for OEBBook actually groks everything out as XML QNames and can thus
> handle e.g. arbitrary namespace prefixes as long as they point to the
> proper namespace URIs.
>
> I'm pretty happy with the code, but because it's a bit of a change I've
> pushed it into a new branch at lp:~llasram/calibre/qname-metadata.
>
> Let me know what you think!
>
> -Marshall
>
> _______________________________________________
> Mailing list: https://launchpad.net/~calibre-devs
> Post to     : calibre-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~calibre-devs
> More help   : https://help.launchpad.net/ListHelp
>
> !DSPAM:3,4983910575724178383233!

-- 
_____________________________________

Kovid Goyal  MC 452-48
California Institute of Technology
1200 E California Blvd
Pasadena, CA 91125

cell  : +01 626 390 8699
office: +01 626 395 6595 (449 Lauritsen)
email : kovid@xxxxxxxxxxxxxxxxxx
web   : http://www.kovidgoyal.net
_____________________________________




References