Bug in Publishing Engine 5.2: "APTOID" processing instructions and oid content()

Submitted by: Karl Johan Kleist Last Updated: 2006-08-28

A bug in Arbortext Publishing Engine 5.2 causes "APTOID" processing instructions to be injected in documents, probably during Compose using XSLT stylesheet. These PIs are used internally by the composition pipeline.

Since these PIs are returned by the oid_content ACL function, the behavior of custom ACL code may be incorrect. PTC has provided this unofficial workaround, which re-defines the function:

package fosisupport; function oid_content (o) { local result = main::oid_content(o); # Strip out any processing instructions. gsub('<\?[^>]*>', '', result); return result; }