Adding a step to convert XML elements into document properties
You can add a step based on the ApplyXSLTransform step template to a workflow to convert XML elements and their attributes into RICOH ProcessDirector document properties.
- Evaluate the XML files that provide input to the process. Make sure that you understand
what information the files contain and how the information is organized.If possible, ask the XML provider for the XML Schema Definition (XSD).
- To extract values for RICOH ProcessDirector document properties, identify the XML elements and attributes that supply values for the properties.
- Use an XSLT tool (such as Altova MapForce) to create an XSLT style sheet.You can convert XML elements into document properties in a property conditions file or in other files.
- Click the Workflow tab.
- Right-click a workflow that you want to use as a model and select Copy.
- Name the copy of the workflow, fill in or edit other values that you need, and click Continue.
- Review the steps that are included in the workflow and the default values that they set.
- Determine where in the workflow you want to convert the XML elements into document
properties.If you want to convert XML elements into document properties in a property conditions file, place the ApplyXSLTransform step before the SetDocPropsFromConditions step that uses the file.
- Add the ApplyXSLTransform step to the workflow in the appropriate place and set values for the step properties:
- For the XML input file property, specify the directory path and name of the XML file.
- For the XSLT file property, specify the XSLT style sheet that you defined for the step.
- For the Output file property, specify the directory path and name of the file that you want RICOH ProcessDirector to create.
For example, you want RICOH ProcessDirector to create a
DocPropConditions.csv
file in the spool directory for the job. Specify${getFileName(DocPropConditions,csv,write)}
. For the Property conditions file property of the SetDocPropsFromConditions step, specify ${getFileName(DocPropConditions,csv,read)}.
- Save and enable the workflow.