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
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|