Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    • no way(hard) to affect performance.


I suggest Suggest to choose the second approach because:

  • usage of this library will accelerate the development
  • no proof that 1st approach will have better performance
  • easily implement new formats.

transform MARC Json file into DC Xml (via xslt) with org.w3c.dom.Node representation:

...


Code snippet

to apply XSLT stylesheet :

replace from previous code snippet

DOMResult domResult = new DOMResult();

MarcXmlWriter marcXmlWriter = new MarcXmlWriter(domResult);

to

DOMResult domResult = new DOMResult();

Source stylesheet = new StreamSource(stylesheetSource); //stylesheetSource - xsl stylesheet URL

MarcXmlWriter marcXmlWriter

=

new

MarcXmlWriter(domResult,

stylesheet);