Getting xi:include transclusion to work...

"Fournier, Brian" <[email protected]> Tue, 21 Oct 2025 12:18:45 +0000
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
--===============0307488703050025671==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_09b86e96fb214566ae54fca715479793mrcdscom_"

--_000_09b86e96fb214566ae54fca715479793mrcdscom_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I am trying to display pre-existing XML files that use the xi:include optio=
n.  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->Referenc=
e menu transclude options to be enabled.  I assume that if I could enable t=
ransclusion, the contents of the included files would be visible inline wit=
h the contents of the main file, is that correct?

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

What am I doing wrong?

Thank you in advance for your input :-)

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

  <xi:include href=3D"chapter1.xml" xmlns:xi=3D"http://www.w3.org/2001/XInc=
lude" />

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

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

[chapter1.xml]
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<chapter xmlns:xi=3D"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 Inter=
national License.


Brian Fournier

Senior Engineer

McLaughlin Research Corporation

774-991-0881

EMAIL DISCLAIMER NOTICE: This e-mail transmission (and/or the attachments a=
ccompanying it) may contain sensitive information belonging to the sender. =
This information is only for the use of the intended recipient(s). If you a=
re not the intended recipient, you are hereby notified that any disclosure,=
 copying or distribution of any information in this transmission, or the ta=
king of any action in reliance on the contents of this transmission, is str=
ictly prohibited. Any unauthorized interception of this transmission is ill=
egal 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.

--_000_09b86e96fb214566ae54fca715479793mrcdscom_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p></p>
<div>
<div>Hello,</div>
<div><br>
</div>
<div></div>
<div>I am trying to display pre-existing XML files that use the xi:include =
option.&nbsp;&nbsp;<span style=3D"font-size: 12pt;">I'm new to XML editing =
so I apologize for my ignorance, but I'm trying to&nbsp;</span><span style=
=3D"font-size: 12pt;">see how the transclusion feature
 of XMLmind works but I can't get it to&nbsp;</span><span style=3D"font-siz=
e: 12pt;">work.&nbsp; I have a simple XML file (main.xml) which includes tw=
o other&nbsp;</span><span style=3D"font-size: 12pt;">files.&nbsp; I have co=
pied the contents of the example files below.&nbsp;&nbsp;</span></div>
<div><span style=3D"font-size: 12pt;"><br>
</span></div>
<div><span style=3D"font-size: 12pt;">With the main&nbsp;</span><span style=
=3D"font-size: 12pt;">file opened in XMLmind, I can't get any of the Edit-&=
gt;Reference menu transclude&nbsp;</span><span style=3D"font-size: 12pt;">o=
ptions to be enabled.&nbsp; I assume that if I could enable
 transclusion, the&nbsp;</span><span style=3D"font-size: 12pt;">contents of=
 the included files would be visible inline with the contents of the main f=
ile, is that correct?</span></div>
<div><br>
</div>
<div>I have selected &quot;Enable the Include Tool&quot; in the&nbsp;<span =
style=3D"font-size: 12pt;">Options-&gt;Preferences-&gt;General-&gt;Features=
 configuration dialog but still no transclusion.</span></div>
<div><br>
</div>
<div>What am I doing wrong?</div>
<div><br>
</div>
<div>
<div>
<div>Thank you in advance for your input :-)</div>
<div><br>
</div>
</div>
</div>
</div>
<div>
<div>[main.xml]</div>
<div>&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;</=
div>
<div>&lt;book xmlns:xi=3D&quot;http://www.w3.org/2001/XInclude&quot;&gt;</d=
iv>
<div>&nbsp; &lt;title&gt;My Awesome Book&lt;/title&gt;</div>
<div><br>
</div>
<div>&nbsp; &lt;xi:include href=3D&quot;chapter1.xml&quot; xmlns:xi=3D&quot=
;http://www.w3.org/2001/XInclude&quot; /&gt;</div>
<div><br>
</div>
<div>&nbsp; &lt;appendix&gt;</div>
<div>&nbsp; &nbsp; &lt;title&gt;License Information&lt;/title&gt;</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &lt;xi:include href=3D&quot;license.xml&quot; parse=3D&q=
uot;text&quot;/&gt;</div>
<div>&nbsp; &lt;/appendix&gt;</div>
<div>&lt;/book&gt;</div>
<div><br>
</div>
<div>[chapter1.xml]</div>
<div>&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;</=
div>
<div>&lt;chapter xmlns:xi=3D&quot;http://www.w3.org/2001/XInclude&quot;&gt;=
</div>
<div>&nbsp; &nbsp; &lt;title&gt;Introduction to XInclude&lt;/title&gt;</div=
>
<div>&nbsp; &nbsp; &lt;para&gt;This chapter introduces the concept of XIncl=
ude and its benefits for modularizing XML documents.&lt;/para&gt;</div>
<div>&lt;/chapter&gt;</div>
<div><br>
</div>
<div>[license.xml]</div>
<div>This document is published under the Creative Commons Attribution 4.0 =
International License.</div>
</div>
<p></p>
<p><br>
</p>
<div id=3D"Signature">
<div id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size: 12pt; colo=
r: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &q=
uot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &q=
uot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<p></p>
<div>
<p style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple =
Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI =
Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px">
<span style=3D"font-size:12pt; color:rgb(0,111,201)"><b>Brian Fournier</b><=
/span></p>
<span style=3D"color:rgb(0,111,201)"></span>
<p style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple =
Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI =
Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px">
<span style=3D"color:rgb(0,111,201)"></span><span style=3D"font-size:12pt; =
color:rgb(0,111,201)">Senior Engineer</span></p>
<span style=3D"color:rgb(0,111,201)"></span>
<p style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple =
Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI =
Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px">
<span style=3D"color:rgb(0,111,201)">McLaughlin Research Corporation</span>=
</p>
<span style=3D"color:rgb(0,111,201)"></span>
<p style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple =
Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI =
Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px">
<span style=3D"color:rgb(0,111,201)">774-991-0881</span></p>
</div>
<p></p>
</div>
</div>
</div>
<h5><font color=3D"gray">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 intend=
ed recipient(s). If you are not the
 intended recipient, you are hereby notified that any disclosure, copying o=
r distribution of any information in this transmission, or the taking of an=
y action in reliance on the contents of this transmission, is strictly proh=
ibited. Any unauthorized interception
 of this transmission is illegal under the law. If you have received this t=
ransmission in error, please promptly notify the sender by reply e-mail, an=
d then destroy all copies of this transmission.
</h5>
</font>
</body>
</html>

--_000_09b86e96fb214566ae54fca715479793mrcdscom_--

--===============0307488703050025671==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

--===============0307488703050025671==--