List Info

Thread: Exempi, namespaces




Exempi, namespaces
country flaguser name
United States
2007-06-06 19:55:46
Hi Hubert,

I've been hacking at Tracker, using exempi-1.99.0.  It's
definitely very
handy 

There's one issue I've come across.  I'd like to add CC
license info in
the http://web.resource.org/c
c/ namespace, but can't since it isn't a
registered namespace.  In other words, RegisterNamespace
isn't wrapped. 
It looks like it requires the following in exempi.cpp:

bool xmp_register_namespace(const char *namespaceURI, const
char
*suggestedPrefix,
                                                       
XmpStringPtr
registeredPrefix )
{
    return SXMPMeta::RegisterNamespace ( namespaceURI,
suggestedPrefix,
STRING(registeredPrefix) );
}

A try/catch block in xmp_set_property would also be nice...
it took
adding one to finally figure out why xmp_set_property
wouldn't let me
add the CC license info.

Cheers,
Jason

_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

Re: Exempi, namespaces
country flaguser name
United States
2007-06-06 20:00:05
On Wed, 2007-06-06 at 17:55 -0700, Jason Kivlighn wrote:
> I'd like to add CC license info in
> the http://web.resource.org/c
c/ namespace,

Please use http://creatiecommons.o
rg/ns# instead.

-- 
  
http://wiki.creativecommons.org/User:Mike_Linksvayer

_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

Re: Exempi, namespaces
country flaguser name
Canada
2007-06-06 20:35:35
Hi,


> I've been hacking at Tracker, using exempi-1.99.0. 
It's definitely very
> handy 
> 
> There's one issue I've come across.  I'd like to add CC
license info in
> the http://web.resource.org/c
c/ namespace, but can't since it isn't a
> registered namespace.  In other words,
RegisterNamespace isn't wrapped. 
> It looks like it requires the following in exempi.cpp:

I forgot that important bit for those who want to write.

Looks like I'll do a 1.99.1 for you 
I'll also add the const for the CC namespace (the one that
Mike mentionned)

And I'll catch the exceptions more. They shouldn't even be
propogated
out of the library.

Hub

PS: I'm now subscribed to the list.
_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )