Re: onix to marc

2010-04-22 Thread Sharif Islam
Galen Charlton wrote: To get a MARC record, assuming you want the ISO2709 serialization, the program could continue as follows: my $marcxml = $xslt->toString; use MARC::Record; use MARC::File::XML; my $marcrec = MARC::Record->new_from_xml($marcxml, 'UTF-8'); print $marcrec->as_usmarc(); Than

Re: onix to marc

2010-04-21 Thread Galen Charlton
Hi Sharif, On Tue, Apr 20, 2010 at 12:08 PM, Sharif Islam wrote: > 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 ;

onix to marc

2010-04-21 Thread Sharif Islam
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 $xs