List Info

Thread: SRW namespace




SRW namespace
country flaguser name
United Kingdom
2007-03-13 07:16:05
Dear Yazlist,

I am hoping to build XML gateway interfaces for several of
our web
databases, and using YAZ Proxy on top of our Z39.50 servers
is a very
elegant solution.

I wanted to change the namespace of the tagging generated by
YAZ Proxy,
so that it used the "srw" namespace documented on
h
ttp://www.loc.gov/standards/sru/explain/index.html .  I
picked up a
nice XSL template for formatting the Explain response into
an HTML form
for testing my service, but the XSL templates assume the srw
namespace.

I found an old posting to the Yazlist
(http://lists.indexdata.dk/pipermail/yazlist/
2005-October/001405.html )
which confirmed that this needed a stream edit to YAZ source
code to
change the name of the prefix, in src/srw.c ...

diff srw.c old
865c865
<             ns_srw = xmlNewNs(ptr, BAD_CAST ns,
BAD_CAST "srw");
---
>             ns_srw = xmlNewNs(ptr, BAD_CAST ns,
BAD_CAST "zs");

...on 8 lines of code.  This had the desired effect.

I am using the latest release of the YAZ code (yaz-2.1.48),
but this
change was still needed.  Given that this is the code tasked
with SRW
XML generation, I am wondering if this change might be made
to the YAZ
source for the next official release?

Many thanks to the authors of the YAZ code, by the way.

Best wishes,
David

David M. Chalmers
Software Development Manager
ProQuest-CSA 
The Quorum
Barnwell Road
Cambridge
CB5 8SW
UK


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

Re: SRW namespace
country flaguser name
Netherlands
2007-03-13 10:50:45
Chalmers, David wrote:
> Dear Yazlist,
> 
> I am hoping to build XML gateway interfaces for several
of our web
> databases, and using YAZ Proxy on top of our Z39.50
servers is a very
> elegant solution.
> 
> I wanted to change the namespace of the tagging
generated by YAZ Proxy,
> so that it used the "srw" namespace
documented on
> h
ttp://www.loc.gov/standards/sru/explain/index.html .  I
picked up a
> nice XSL template for formatting the Explain response
into an HTML form
> for testing my service, but the XSL templates assume
the srw namespace.

Maybe i'm confused, but shouldn't a XLS script be capable to
proces XML
regardless of such namespace prefixes?
I mean:

<zs:explainResponse xmlns:zs="http://www
.loc.gov/zing/srw/">....

should be equivalent to:

<srw:explainResponse xmlns:srw="http://www
.loc.gov/zing/srw/">....

or
<whatever_i_have_here:explainResponse
xmlns:whatever_i_have_here="http://www
.loc.gov/zing/srw/">....

Important is that the NAMES "http://www.loc.gov
/zing/srw/" match

just my 2 ¢

Ko vd Sloot

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

Powered by YAZ Proxy - logo
country flaguser name
United Kingdom
2007-05-11 04:41:12
One for the Index Data folks...

I would be delighted to show a "Powered by YAZ
Proxy" logo somewhere on
our site.  Is there a logo and can you provide its URL?

Very best wishes,
David


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

Powered by YAZ Proxy - logo
user name
2007-05-11 06:20:25
Chalmers, David writes:
 > One for the Index Data folks...
 > 
 > I would be delighted to show a "Powered by YAZ
Proxy" logo
 > somewhere on our site.  Is there a logo and can you
provide its
 > URL?

Hi, David.  No, there is no such logo yet -- there are
several others
on our site at:
	http:
//www.indexdata.dk/about_us/logo/index.tkl
but none that refers to YAZ Proxy specifically.  Maybe you
could just
use the "Powered by YAZ" one?

We'll try to get a YAZ Proxy one done some time soonish, but
probably
not today or tomorrow.

 _/|_	
____________________________________________________________
_______
/o ) /  Mike Taylor    <mikeindexdata.com>    http://www.miketaylor.or
g.uk
)_v__/  "In the forwards debate: Rush _is_ past it,
despite the odd
	 hat-trick" -- Lee Curran.


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

[1-4]

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