Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: ACL code not working

$
0
0

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)


Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>