Converting already archived articles from XML to HTML

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:34

The workflow ArchivedToHTML converts already archived articles from the native justification XML to the new HTML format introduced with the last changes to xsl_Archive.xslt.

Please import the two files contained in the ZIP and then execute:

  cmd4 wf -name ArchivedToHtml -pars folderPath:PPPP -username xxxx -password yyyy

where PPPP is the path of the archive, xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.

Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.

The workflow will look for all stories in the specifeid folder and all its sub-folders, identify the ones that contain native justification XML and convert them to HTML. To identify the stories that contain justification XML the workflow look for 'xmlText' containing a top-level 'body' element.

I suggest you start with some sub-folder with only some texts - the workflow has not been thoroughly tested.