@echo off if x==%2x goto howto echo Transforming %1 to marcxml ... java -cp marcxml-20080423.jar;marc4j.jar gov.loc.marcxml.MARC2MARC21slim %1 slimfrbr.xml echo Transforming the marcxml into FRBR xml and saving to %2.xml ... java -jar saxon9.jar -warnings:silent -u -o clean.xml slimfrbr.xml http://www.loc.gov/standards/marcxml/frbr/v2/clean.xsl java -jar saxon9.jar -warnings:silent -u -o match.xml clean.xml http://www.loc.gov/standards/marcxml/frbr/v2/match.xsl java -jar saxon9.jar -warnings:silent -u -o %2.xml match.xml http://www.loc.gov/standards/marcxml/frbr/v2/FRBRize.xsl del slimfrbr.xml del clean.xml del match.xml echo Transforming the FRBR xml into a HTML webpage for display and saving to %2.html ... java -jar saxon9.jar -warnings:silent -a -o %2.html %2.xml echo Complete goto end :howto echo marc2frbr usage: echo marc2frbr marcfile.mrc outputstem echo. echo marcfile.mrc will be transformed into 2 files: echo. echo outputstem.xml echo Will contain the FRBR xml representing the marc records echo. echo outputstem.html echo Will contain the HTML display of the FRBR xml echo. :end