We are executing ACL files via Arbortext Editor Command Line (ex: “source acl_file.acl”).
A document identifier had to be provided to doc_kind() function to allow it to function for the document opened by doc_open().
The following code sample produces an empty xml file. What are we missing?
Sample Code:
cd "c:/folder_to_sgml/"
$sgml_doc = doc_open("sgmlfile.sgm", 0x200)
message "sgml document identifier: $sgml_doc"
$xmlName = "xmlfile.xml"
if (doc_kind($sgml_doc) == "sgml") {
message "document type is: sgml"
save_as -xml "$xmlName"
}
# Close SGML File
close($sgml_doc)