XML Xinclude example

Anyone who reads this

I have tried to follow the Infoset inclusion example on the document at
http://www.w3.org/TR/xinclude
but I can not make it work.
Am I missing something? Will this example work as described in the
mentioned
document or is this just illustrative at this stage.

Is there an easy alternative to include a second xml file in a xml or html
environment?
I appreciate your help.

Arvinder Bawa
Air Products
Hersham, UK.
bawaa@apci.com


Infoset inclusion example

first.xml

<?xml version='1.0'?>
<document xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
  <p>120Mz is adequate for an average home user.</p>
  <xinclude:include href="disclaimer.xml"/>
</document>

disclaimer.xml

<?xml version='1.0'?>
<disclaimer>
  <p>The opinions represented herein represent those of the individual
  and should not be interpreted as official policy endorsed by this
  organization.</p>
</disclaimer>

Result

<?xml version='1.0'?>
<document xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
  <p>120Mz is adequate for an average home user.</p>
  <disclaimer>
  <p>The opinions represented herein represent those of the individual
  and should not be interpreted as official policy endorsed by this
  organization.</p>
</disclaimer>
</document>

Received on Tuesday, 20 June 2000 04:24:24 UTC