Hi,

I like XXE very much but there's only one feature that bugs me
when editing DocBook modular documents with source fragments
included in it using XInclude/parse="text", as shown here:

  <programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude";
    href="examples/src/main/java/comp/Person.java" parse="text">
    <xi:fallback>!!! NOT FOUND !!!</xi:fallback>
  </xi:include></programlisting>

Once you edit and save whichever section of your DocBook document, then the
XIncludes pointing to the source fragments are replaced by the actual
source fragments.

A simple solution would be to have an option in XXE "Show 
XInclude/parse=text
fragments as hyperlinks", so that inside XXE you won't be able to see the
source fragment. Instead you will be able to click on the link
'examples/src/main/java/comp/Person.java' in order to open it with a 
separate
text editor (Notepad, VIM, ...). As a consequence I don't think
the XIncludes will have to be replaced by the actual code fragments
once the DocBook is modified and saved.

Regards,
Davy Toch



Reply via email to