Hello,

I am trying to display pre-existing XML files that use the xi:include option.  
I'm new to XML editing so I apologize for my ignorance, but I'm trying to see 
how the transclusion feature of XMLmind works but I can't get it to work.  I 
have a simple XML file (main.xml) which includes two other files.  I have 
copied the contents of the example files below.

With the main file opened in XMLmind, I can't get any of the Edit->Reference 
menu transclude options to be enabled.  I assume that if I could enable 
transclusion, the contents of the included files would be visible inline with 
the contents of the main file, is that correct?

I have selected "Enable the Include Tool" in the 
Options->Preferences->General->Features configuration dialog but still no 
transclusion.

What am I doing wrong?

Thank you in advance for your input :-)

[main.xml]
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns:xi="http://www.w3.org/2001/XInclude";>
  <title>My Awesome Book</title>

  <xi:include href="chapter1.xml" xmlns:xi="http://www.w3.org/2001/XInclude"; />

  <appendix>
    <title>License Information</title>

    <xi:include href="license.xml" parse="text"/>
  </appendix>
</book>

[chapter1.xml]
<?xml version="1.0" encoding="UTF-8"?>
<chapter xmlns:xi="http://www.w3.org/2001/XInclude";>
    <title>Introduction to XInclude</title>
    <para>This chapter introduces the concept of XInclude and its benefits for 
modularizing XML documents.</para>
</chapter>

[license.xml]
This document is published under the Creative Commons Attribution 4.0 
International License.


Brian Fournier

Senior Engineer

McLaughlin Research Corporation

774-991-0881

EMAIL DISCLAIMER NOTICE: This e-mail transmission (and/or the attachments 
accompanying it) may contain sensitive information belonging to the sender. 
This information is only for the use of the intended recipient(s). If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying or distribution of any information in this transmission, or the taking 
of any action in reliance on the contents of this transmission, is strictly 
prohibited. Any unauthorized interception of this transmission is illegal under 
the law. If you have received this transmission in error, please promptly 
notify the sender by reply e-mail, and then destroy all copies of this 
transmission.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to