onix to marc

[email protected] (Sharif Islam)
Newsgroups perl.perl4lib
Message-ID <[email protected]>
Hi,

Has anyone used the XML::XSLT module to convert onix data to marc.

I tried using the xsl from the loc:
http://www.loc.gov/standards/marcxml/xslt/ONIX2MARC21slim.xsl

#!/usr/bin/perl
use strict;
use XML::XSLT ;

my $xmlFilename = "onix.xml" ;
my $xslFilename =  "ONIX2MARC21slim.xsl" ;

my $xslt = XML::XSLT->new($xslFilename, warnings => 1);
$xslt->transform($xmlFilename);
print $xslt->toString;

But how I get this string output to a marc format?  Do I need something
like the MARC-> Dublincore crosswalk
(http://search.cpan.org/~bricas/MARC-Crosswalk-DublinCore-0.02/lib/MARC/Crosswalk/DublinCore.pm) 


--sharif



-- 
Sharif Islam                 Research Programmer
Library IT                   University of Illinois Urbana-Champaign
http://www.library.illinois.edu  phone:  (217) 244-7429
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.