As a solution to another question (see
http://forums.xmetal.com/index.php/topic,1747.0.html) I'm altering a script to insert a processing instruction instead of a troublesome Unicode character. The problem is that I can't get the processing instruction (truthfully, _any_ PI) to stay visible in any DITA document. If I insert a processing instruction (from the command on the main menu), it appears and accepts my input. As soon as I change views, the PI disappears and is never visible unless I switch to text-only mode.
I've searched through the CSS files for my specialized DITA application and the default DITA CSS files that came with XMetaL and I can't find anything that would make this happen. I've tested this behavior in my specialized DITA DTDs and also in the default DITA DTDs that come with XMetaL; the behavior is the same.
Here's a sample workflow:
1. Create a new DITA concept.
2. Insert some text in a p element.
3. Within that same p element, select Insert > Advanced > Processing Instruction. A blank processing instruction appears.
4. Enter your processing instruction data, for example "codex zwsp" (without the quotes). The PI appears valid.
5. Toggle views (between tags on/off or vice versa). The PI disappears and never comes back.
6. Switch to Text Only view. The PI is still there but insists on being invisible.
If I perform the same workflow with a Article (from the Jouralist DTD), the PI stays visible in all views.
Also, the documentation shows one method for styling PIs but I see another method being used in the CSS files that come with the default DITA application.
To style all PIs with a "codex" target, the doc says to use the following selector:
$procins[xm-pi-target="codex"]
In the $XM_HOME/Author/DITA/XACs/shared/ditabase-base.css, I see selectors like:
$PROCINS[Pub]
Which is the proper method?
Background: I'm using XMetaL 6.0.2.070 with the latest DITA 1.2 kit installed, running on Windows XP.
Any assistance is appreciated.
Best regards,
Paul Anderson
Information Developer, Compuware Corporation