For a library school course (Projects in Digital Archives at Pratt
Institute) I'm putting together a small online catalog for a portion
of my music collection (20 or so records (you can read that as vinyl
or surrogate)). I'm not worrying about an interface for adding
records or maintenance, as I'll be doing all the backend, and am more
concerned about having something to show the class in a few weeks. I
plan to just keep the records as XML files (MODS or MARCXML, I haven't
quite decided) in a directory, and serve up pages dynamically based on
search results from swish-e. Any suggestions about general design or
useful tools would be most appreciated.
I have what I feel are some very newbie questions, but I've been
unable to find answers elsewhere. To begin experimenting with some
MARCXML translation, I downloaded the example MARCXML record and the
MARCXML HTML Stylesheets "English Tagged View" from
http://www.loc.gov/standards/marcxml/ . I ran it through 4xslt (I've
already bugged panix.com about installing libxslt and xsltproc, and
will run it through xsltproc on my linux box at home when I get a
chance) on my shell account at panix.com and got the following
An unexpected error occurred while processing.
The error was: LookupError: unknown encoding: ucs-2
Use the -e (--stacktrace-on-error) option for a full stack trace.
After looking at things for a second, I realized that the "English
Tagged View" Stylesheet is ucs-2 encoded. The "MARC Tagged View,"
however, is utf-8, and it processes fine through 4xslt. Is there a
reason the Library of Congress provides the "ETV" Stylesheet in ucs-2,
and a reason 4xslt on panix.com doesn't support it? Also, is there an
easy way to convert it to utf-8?
Finally, on the topic of client-side transformation, I've noticed that
when I throw a
<?xml-stylesheet type="text/xsl" href="http://www.loc.gov/standards/marcxml/xslt/MARC21slim2ENGLISH.xsl"?>
into the example XML then MS Internet Explorer will transform it
correctly, but in Firefox all of the metadata ends up on one line,
with no field titles. If I change "text/xsl" to "application/xml"
then MSIE won't transform it, and Firefox does the same thing it did
with "text/xsl." The same occurs when I change the pointer to the
"MARC Tagged View" Stylesheet. Am I doing something wrong, is the LoC
Stylesheet not standards compliant, or is client-side transformation
just not very trustworthy?
I apologize for the multitude of questions. Any help is appreciated.