Re: Include directive

Martin Klang <[email protected]> Tue, 15 Jul 2003 10:42:46 +0000 (GMT)
Newsgroups gmane.text.xml.o-xml
Message-ID <[email protected]>
Tim,

you can include an xml document verbatim with XInclude statements:
<xi:include href="connection.xml"
 xmlns:xi="http://www.w3.org/2001/XInclude"/>

you can also use XPath expressions in an XPointer. eg to get all
subelements from a root element "doc" you could do something like:

<xi:include href="connection.xml#xpointer(doc/*)"
 xmlns:xi="http://www.w3.org/2001/XInclude"/>


With ObjectBox 0.9.5 (current) there's also a new import statement which
is intended to include only o:XML defintions - functions, types and
procedures:

<o:import href="module.oml"/>

comprehensive include/import documentation is going to be included in
the 1.0 spec, due out soon(-ish).


cheers -

/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language

On Mon, 14 Jul 2003, Panec, Tim M wrote:

> An o:include directive is listed in the documentation but not defined.
> Does such a directive exists and does it include another file? If so can you define it's attributes?
>
> I'd like to put my <db:connection> info in a single file that gets included in all my oxml files.
>