Namespace problem after migrating from 5.1 to 5.2

Answered by Tung Fu (PTC) Last Updated: 2006-10-16

XML namespace support has improved in Arbortext Editor 5.2, however this has some side effects in 5.2...

=Question by N.N.=

I'm migrating from Epic 5.1 to editor 5.2, and I encounter following similar problems:

"dlgitem_deactivate" function does not work anymore for attributes of type namespace like "dctm:obj_id", "dctm:obj_status", "dctm:version_label", ... (I'm using Repository Adapter for Documentum/XML) when customizing Modify Attributes window with "modify_tag" callback.)

In the same order of idea, my DCF file contains following lines:

     

But this does not work anymore with Epic Editor 5.2; attributes can be viewed in document map pane (left frame).

It seems like a deep change in Epic namespaces management, or a regression. I did not have these problems with 5.1.

Does anyone encounter this kind of problem and has a workaround ?

=Tung Fu answers=

These two issues are related to namespace support improvement in Epic 5.2. See the Enhanced namespace support section in 5.2 Release Notes.

For the dlgitem_deactivate, you need to replace the colon, ":", in the attribute name with a period, ".", when you use the name to call dlgitem_deactivate. For example, for the attribute dctm:obj_id, use "dctm.obj_id":

dlgitem_deactivate(win, "dctm.obj_id");

This is because in the XUI file, a dlgitem is an ID, and we don't want the ":" to be in the ID.

For the attributes name in DCF, you need to use the {URI}Local_Name format. For example:

