I'm in the process of writing an ACL script that will compose using XSL. The script is working as expected except for the stylesheet selection. I need to be able to set the stylesheet using relative paths but it's not working. Is there a trick to relative paths in Arbortext's ACL?
Here a snippet of the code:
readvar -TITLE 'IMM Translation'\ -prompt 'Select the Section to Translate:'\ -choice 'Maintenance'\ maint\ -choice 'Illustrated Parts Breakdown'\ ipb\ -choice 'Wiring Diagrams'\ wire\
I think the problem is that Arbortext doesn't know what the relative path is relative to. Your best bet is to explicitly supply this, turning your path into an absolute one.
You could use "dirname(doc_path(current_doc()))" to get the directory containing the current document or "doc_type_dir(current_doc())" to get the directory containing the document type of the current document.
You might also want to try using the "absolute_file_name(filename, directory)" function to combine a relative filename (possibly including "..") with a base directory, returning a resolved absolute filename.