On 3/30/06, John L. Clark <jlc6 at po.cwru.edu> wrote:
> ...  Unfortunately, it requires
> that the macro definition PIs be located before the root element in the
> document, and XXE does not allow direct manual editing of content
> outside the root element.  I believe that you can still write custom
> commands to add processing instructions to a document being edited in
> XMLmind, though.

I've written a pre-root-PI editor in Java; it can be included in the
UI as a component, i.e.,

rfc:before {
        display: block;
        content: division(content(component("com.att.research.fenner.xmleditapp.
xml2rfc.PreRootPI"), paragraph(content("RFC metadata: ", attributes()))));
        padding: 2px 2px 0 2px;
}

I'd be happy to share the code if others are interested in building
similar pieces.  This one is about as simple as it can get, basically
allowing direct manipulation of "attributes" and their values,
insertion and deletion of <?rfc?> PIs.

Its biggest disadvantage is that it can't mark the document as
modified, and it doesn't use the undo manager, so you can change a PI
and then either exit without saving or use "undo" and undo your last
document change, not the PI change.

  Bill

Reply via email to