[oXygen-user] Convenient insertion of XInclude from project view

Radu Coravu
Wed May 4 00:53:48 CDT 2011


Hi Jirka,

You are probably editing Docbook 5 XML with RNG schema.

Docbook 5 also has a RNG schema which allows xi:include in any element.
This schema is used by default by Oxygen for validation if the schema is 
not associated from inside the XML document:
OXYGEN_INSTALL_DIR/frameworks/docbook/5.0/rng/docbookxi.rng

But you are probably using the standard RNG schema with the XML.
Even so, the schema aware editing (controlled from the Oxygen 
Preferences->"Editor / Pages / Author / Schema aware" page) should 
probably allow xi:includes to be inserted anywhere as the RNG Jing 
validation is done after the <xi:include> tags are expanded. So we'll 
look into this and probably make a fix in a future version.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 5/3/2011 4:02 PM, Jirka Kosek wrote:
> Radu Coravu wrote:
>
>> We are also considering adding some actions for easier insertion of
>> XIncludes in any opened XML document.
>
> That would be nice. I would like to see XInclude treated more
> transparently. For example for my drag'n'drop solution I have to modify
> schema to allow xi:include elements on dozen places otherwise oXygen
> complained about breaking validity by inserting xi:include element. But
> if I force oXygen to do insert anyway, resulting document is valid
> because validation is processing XIncludes.
>
> It would be really great if XInclude can be used on any document, even
> if the corresponding document doesn't explicitly define xi:include
> elements in schema.
>
> Thanks for prompt response, I have my XInclude drag'n'drop already
> working. It was quite easy hack.
>
> 			Jirka
>



More information about the oXygen-user mailing list