W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > May 2000

Comments on XInclude

From: Paul Hamilton <paul@bbb.com.au>
Date: Tue, 23 May 2000 15:12:06 +1000
Message-ID: <3840107F9E07D311BED800A0C9A85FBF36EABF@bill.bbb.com.au>
To: "'www-xml-xinclude-comments@w3.org'" <www-xml-xinclude-comments@w3.org>

In a system that we are developing for the entertainment industry, we
currently use a scheme similar to XInclude to modularise our XML documents.

The scheme we use looks like this:


	<import url="bar.xml"/>


<bar name="mybar">

It works exactly as you described. The XML is included during parseing and
appears to the XML reader as if the document was in a single large piece.

There are two additions to this that help us:

	1) You can changed an attribute at the root by overriding in the

			<import url="bar.xml" name="bar1"/>
			<import url="bar.xml" name="bar2"/>

		Now each of the bars are uniquely named for later

	2) You can substitue variables like the C preprocessor.

			<import url="bar.xml" name="bar1">
				<param name="p1" value="123"/>


		<bar name="mybar">

		Afterwards you get:

			<bar name="mybar">

Both of these techniques have proved invaluable in our development, and for
adoption of XInclude (which I would love to do) woudl need facililties like

I hope this is not all FAQ. If it is, just let me know.


Paul Hamilton
Technical Manager - Software
Bailey Bailey & Bailey Pty Ltd
Ph:  +61 1300 722 213
Fax: +61 1300 722 223

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer. Please note that contents of all BBB emails may be randomly
monitored to prevent the unauthorised sending or receiving of offensive
Received on Tuesday, 23 May 2000 01:14:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:28 UTC