On 11/21/05, Boris Stumm <stumm at informatik.uni-kl.de> wrote:
> - When switching from normal (Docbook) view to document structure view
>   and back, all comments and PIs are not displayed anymore. The only
>   solution seems to be to restart xxe. Its only a display problem, nothing
>   is lost.

Very interesting.  A workaround, which I hope is indicative of the
problem, is to add the following to the end of docbook.css:

*:comment,
*:processing-instruction {
    display: block;
}

Presumably the "display: none" from the structure.css is sticking
around somehow.

> - Is there a way to enter the target of a PI in an comfortable way?

This is possible to some extent from a macro.  For example, I have the
following macro to insert an <?rfc ?> PI with the content
include='reference.' and set the cursor position immediately following
the period:


  <command name="xml2rfc.addRFCInclude">
    <macro undoable="true">
      <sequence>
        <choice>
          <command name="insertNode" parameter="piInto[implicitElement] rfc" />
          <command name="insertNode" parameter="piAfter[implicitNode] rfc" />
          <command name="insertNode" parameter="piAfter[implicitElement] rfc" />
        </choice>
        <command name="insertString" parameter="include='reference.'" />
        <set variable="dotOffset" expression="19" />
      </sequence>
    </macro>
  </command>

(The "choice" there is to try to get the right position of the PI
depending on where the cursor is and what's selected.)

  Bill

Reply via email to