Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.9 KB

Stripping_whitespace.md

File metadata and controls

41 lines (24 loc) · 1.9 KB

Stripping excess whitespace

Some of our transformed metadata contains excess whitespace, so that lines break unncessarily. This can be fixed using stripping_whitespace.xsl either on the command line or with oXygen xml editor.

To use with oXygen xml editor;

Copy all metadata records to be transformed into one folder

  1. Create a project in oXygen > Project > New Project

new_project

  1. In the project window right click on the project name and select 'Add Folder'. Add the folder you want to work on. you could add the folder that contains all the metadata files or you could copy them to another 'processing' folder so that you keep the old versions for comparison.

  2. In the project window select all the metadata files you want to process. Right click on these files and navigate to 'configure transformation scenario' configre_transformation_scenario

  3. Follow the dialogue to create a new transformation scenario

XSLT options

new_scenario_xslt

  • Select 'xml transformation with xslt'
  • name the transofrmation scenario
  • the xml url should be ${currentFileURL}
  • find the xsl file using the folder icon - the xsl url should then point ot the correct file
  • for Transformer select Saxon-EE

Output options

new_scenario_output

  • select 'save as' and the filename should be ${cfne}

This will overwrite the original file.

  1. Finally apply the associated transformation.

apply_associated