Hussein Shafie wrote:
> Kevin Flynn wrote:
>>
>> I discovered by experiment that XmlMind's xinclude support does not 
>> include support for the xinclude 'parse="text"' option. I have two 
>> questions:
>>
>> - will version 4 support it?
>
> Yes.
>
>
>
>> - do you have any workaround that would allow me to xinclude 
>> XML/HTML/JSP examples in my documents? I tried putting a CDATA 
>> wrapper around the xinclude element, but then of course the xinclude 
>> gets treated as plain text and is not executed...
>>
>
> Please install and use the add-on called "Customization of the DocBook 
> 5 configuration allowing to edit <xi:include> elements by hand".
>
> ``This customization the DocBook 5 configuration allows to edit 
> <xi:include> elements by hand, exactly like any ordinary DocBook 
> element. With the stock DocBook 5 configuration, <xi:include> elements 
> are transcluded, which means that such elements exist only at document 
> open time and at document save time. Installing this customization is 
> definitely not recommended for a normal usage of DocBook 5.''
>
>
>
>
Thanks very much for your reply - I didn't know about this add-on. 
However, my problem isn't really to do with how to edit xinclude 
elements, more to do with how XXE handles them - I think I wasn't very 
clear.

Suppose I have an XML file, foo.xml, containing

<foo/>

that I want to include in my document as an example. I edit my document 
(using an external text editor, say) so that it contains:

<programlisting>
    <xi:include href="foo.xml" parse="text"/>
</programlisting>


When I next open the document in XXE, I get a warning telling me that my 
document contains an unmanaged inclusion that will be absorbed into the 
document. The file content is rendered the way I want, it's just not an 
inclusion any more.

What I'm looking for is a workaround that will let me include code 
examples in my documents in a managed way.

Incidentally, I would also like to know what the regression you mention 
above will be (I don't want to rely on functionality that is going to 
disappear...)

Thanks very much for you help and for your answer to my other recent query.

Kevin Flynn
Escenic AS
Oslo, Norway

Reply via email to