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. <span style=3D"font-size: 12pt;">I'm new to XML editing =
so I apologize for my ignorance, but I'm trying to </span><span style=
=3D"font-size: 12pt;">see how the transclusion feature
of XMLmind works but I can't get it to </span><span style=3D"font-siz=
e: 12pt;">work. I have a simple XML file (main.xml) which includes tw=
o other </span><span style=3D"font-size: 12pt;">files. I have co=
pied the contents of the example files below. </span></div>
<div><span style=3D"font-size: 12pt;"><br>
</span></div>
<div><span style=3D"font-size: 12pt;">With the main </span><span style=
=3D"font-size: 12pt;">file opened in XMLmind, I can't get any of the Edit-&=
gt;Reference menu transclude </span><span style=3D"font-size: 12pt;">o=
ptions to be enabled. I assume that if I could enable
transclusion, the </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 "Enable the Include Tool" in the <span =
style=3D"font-size: 12pt;">Options->Preferences->General->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><?xml version=3D"1.0" encoding=3D"UTF-8"?></=
div>
<div><book xmlns:xi=3D"http://www.w3.org/2001/XInclude"></d=
iv>
<div> <title>My Awesome Book</title></div>
<div><br>
</div>
<div> <xi:include href=3D"chapter1.xml" xmlns:xi=3D"=
;http://www.w3.org/2001/XInclude" /></div>
<div><br>
</div>
<div> <appendix></div>
<div> <title>License Information</title></div>
<div><br>
</div>
<div> <xi:include href=3D"license.xml" parse=3D&q=
uot;text"/></div>
<div> </appendix></div>
<div></book></div>
<div><br>
</div>
<div>[chapter1.xml]</div>
<div><?xml version=3D"1.0" encoding=3D"UTF-8"?></=
div>
<div><chapter xmlns:xi=3D"http://www.w3.org/2001/XInclude">=
</div>
<div> <title>Introduction to XInclude</title></div=
>
<div> <para>This chapter introduces the concept of XIncl=
ude and its benefits for modularizing XML documents.</para></div>
<div></chapter></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", "Segoe UI Emoji", NotoColorEmoji, &q=
uot;Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
<div>
<p style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple =
Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI =
Symbol","Android Emoji",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,"Apple =
Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI =
Symbol","Android Emoji",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,"Apple =
Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI =
Symbol","Android Emoji",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,"Apple =
Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI =
Symbol","Android Emoji",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==--