ACL Example Code


 * About the special paste buffer _APT_DRAGDROP_PASTEBUF - Brent Hartwig shows how a copy or cut operation fills the special paste buffer _APT_DRAGDROP_PASTEBUF
 * ACL Change Tracking author colors utilities package - ACL package to create change tracking author colors (except current user who gets default green-adds, red-deletes).
 * Circular package dependencies - A simple fix is suggested by your humble editor, and a slicker one by Brent Hartwig.
 * How can I change the doctype, which an open document is validated against?
 * How do I customize the "Insert Symbol" dialog? - Credits to Alice Roberts and Lynn Hales for the recipe
 * How to avoid duplicate id attributes after copy/paste? - Brent Hartwig discusses the problem and shares code
 * How to avoid "element not allowed in context" errors when inserting tag templates? - Tung Fu (PTC) shows how
 * How to avoid the error popup from check_completeness? - Brent Hartwig shows how to use the execute function in order to supress the error popup from the check_completeness command
 * How to capture the output from a shell command - Clay Helberg shares a utility function which executes a shell command and returns its output
 * How to catch window kill? - Steve Cuzner shows how to handle the case, when the user clicks the "X" button in a windows's title bar
 * How to get the content of a non-Arbortext PI? - Clay Helberg suggests a way to get the content of a non-Arbortext processing instruction
 * How to modify a document's graphic tags to reflect the actual dimensions of the graphics file? - This code snipped was drafted by Frank Marent, enhanced by Brent Hartwig, and slightly beautified by the editor.
 * How to move the caret to the preceeding/following tag - Remember the days before oid functions? Brent Hartwig shares an interesting exercise, using regular expressions but (almost) no oid functions.
 * How to move the caret to the document map? - Tung Fu, PTC, shows the ultimate code
 * How to open an XInclude target when double-clicking - Eliot Kimber shares his implementation of "open-on-double-click of XInclude-style references"
 * How to prevent the "Modify Attributes" dialog when splitting an element? - More beautiful code from Brent Hartwig
 * How to remove unused graphic entites from a document? - Code by Rune Kallhovd, I have just removed the unnecessary dollar signs in variable names and added single quotes round PREPEND at the very end.
 * How to suppress the pop-up dialog when enabling context checking? - Brent Hartwig knows
 * How to select a certain part of a text node? - Brent Hartwig shows how
 * I want to modify a rendered XUI document using oid functions - You are not supposed to. Use AOM.
 * js_eval ??? - What about the ACL function js_eval, which I often see in example code on the adepters list?
 * Set Windows environment variables - Brent Hartwig shows how to permanently set Windows environment variables through the registry. NOTE: Use with care!
 * Splitting a table imported from Word? - Brent Hartwig answers a question about importing a table from a Microsoft Word document, and shares a "post import hook" function.
 * Using string variables for the cases in the "switch" command - The documentation for the "switch" command (help 810) states that "The case constant label allows for variable substitution". This is obviouly true for numerical values only, not for strings. Clay Helberg has found a way of working around this undocumented limitation of ACL.
 * XPath helper function - Keith Berard shows a small ACL helper function that makes it easy to use XPath expressions from Java or C#; OIDs in selection by kjk — last modified 2006-08-03 20:11; Mark Cole shows how to find out the OIDs for a group of elements that are inside a selection
 * How to delete Arbortext PIs to remove shading in a table - James Sulak has a function to do this