Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello!
I use Java (the plugin is made) for modifying the content of the opened XML/SGML files (Arbortext 5.2).
How should I modify the color of the nodes (I mean programming mode)?
As far as I'm concerned, the usage of _font nodes is forbidden (a-la <_font>text). At least it leads to errors in SGML.
Then we should use processing instructions (PI). How should we create them?
The standard Java DOM method createProcessingInstruction() does not work when we deal with SGML.
I think that it's because of the different format of PIs in SGML and XML.
Should we use Acl OID commands/functions?
Hello!
I don't know what is FOSI.
But I use processing instructions (PIs for markup. Ordinary font nodes don't work within SGML (only XML supported).
That's why I have to use PIs which encolor text nodes within XML and SGML.
But these PIs have different format.
Here is a fragment of my Java code:
Object[] objs = {color};
String pi;
if (isSgml_)
pi = MessageFormat.format("is -sgml '''", objs);
else
pi = MessageFormat.format("is -sgml '''", objs);
Acl.execute(pi);