Example of Changing XSLT Engine via COM

Anyway, once MarcEdit starts allowing users to utilize the Saxon XSLT engine, a new COM property will be made available to allow users scripting to the MARCEngine the ability to modify which engine is in use.  Here’s how it would look:

Const MSXML = 1
Const SAXON = 2
lret = 0

Set obj_MARC=CreateObject(“MARCEngine5.MARC21”)
obj_MARC.Set_XSLT_Engine = SAXON
lret = obj_MARC.XML2MARC(“c:\test.xml”, “c:\test.mrc”, “c:\ead2marc21.xsl”, “c:\marc21slim2mnemonic.xsl”)

msgbox “finished”

 –TR


Posted

in

by

Tags: