This statement has the following parameters
Parameter | Description |
---|---|
InputDocumentName | Nonnumeric literal or identifier of an alphanumeric data item that specifies the filename of the document to transform (the input document). If an extension is not specified in the filename, the extension .xml is appended to the specified filename. |
StyleSheetName | Nonnumeric literal or identifier of an alphanumeric data item that specifies the filename of the XSLT stylesheet file to be used for the transformation. If an extension is not specified in the filename, the extension .xsl is appended to the specified filename. |
OutputDocumentName | Nonnumeric literal or identifier of an alphanumeric data item that specifies the filename of the transformed document (the output document). If an extension is not specified in the filename, the extension .xml is appended to the specified filename. |
The XML TRANSFORM FILE statement transforms the XML document specified by the InputDocumentName parameter using the XSLT stylesheet specified by the StyleSheetName parameter into a new document specified by the OutputDocumentName parameter. The new document may or may not be an XML document depending on the XSLT stylesheet.
A status value is returned in the data item XML-Status of XML-data-group, which is defined in the copy file lixmldef.cpy.
XML TRANSFORM FILE "MY-IN-DOCUMENT" "MY-STYLESHEET" "MY-OUT-DOCUMENT”. IF NOT XML-OK GO TO Z.
XML SET XSL-PARAMETERS "MY-COUNT" 7 "MY-NAME" "ACUCOBOL-GT" MY-PARAM-NAME-ITEM MY-PARAM-VALUE-ITEM. IF NOT XML-OK GO TO Z. XML TRANSFORM FILE "MY-DOCUMENT.XML" "MY-PDF-XFORM.XSL" "MY-NEW-FILE.PDF”. IF NOT XML-OK GO TO Z.