Cameron Shorter wrote:
> 
> I'm using XXE to write docbook with <xi:include> tags (which allows you to
> import one docbook file into another).
> I describe the process in our developers guide here:
> http://geotools.org/gt2docs/developersguide.html#modulardocumentation
> 
> Unfortunately, <xi:include> tags mean that the master document is not valid
> XML anymore which means that XXE has a couple of problems (which I'm hoping
> you may be able to address).
> 1. When I save the master document with invalid XML, the formatting is lost
> and all <return> characters are removed.  :(
> 
> 2. It would be nice if XXE could display the <xi:include> tags so that they
> can be edited.
> 
> 3. It would be even better if the <xi:include> tags could be resolved, and the
> sub documents imported into the master document so that I can view everything
> all at once.  (This may need to be an option for very large documents).

Support for large, modular, XML documents is a planned  feature (see
http://www.xmlmind.com/xmleditor/features.html#planned ).

Xinclude is a nice, simple, standard which will probably be supported
(as well as plain old XML 1.0 external  entity references) to implement
this feature.

Unfortunately, this planned feature will not be implemented before
several months.

For now, as a simple and quick workaround, I suggest that you modify the
DocBook DTD that is bundled with XXE to declare xi:include elements.

After doing that, please also add this rule to the DocBook CSS style
sheet:

  +--- the '\' is important.
  |
  v
xi\:include {
    content: "include " attr(href);
    color: gray;
}

Reply via email to