<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
Unfortunately there is no out of the box setting that can activate
the XInclude expansion for the documents loaded with the <b>doc</b>
function.<br>
<br>
As a simple workaround, you can use the following XSLT snippet to
recursively expand the XInclude nodes:<br>
<p>
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<pre style="background-color:#ffffff;color:#000000;font-family:'Courier New';font-size:9.0pt;"><span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:template">xsl:template</a> </span><span style="background-color:#f7faff;">match</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="/"</span><span style="background-color:#f7faff;">></span>
<span style="color:#808080;font-style:italic;"><!-- ... -->
</span><span style="color:#808080;font-style:italic;"> </span><span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:variable">xsl:variable</a> </span><span style="background-color:#f7faff;">name</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="tsDoc" </span><span style="background-color:#f7faff;">select</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="doc('path/to/targetset')"</span><span style="background-color:#f7faff;">/></span>
<span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:variable">xsl:variable</a> </span><span style="background-color:#f7faff;">name</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="expandedTS" </span><span style="background-color:#f7faff;">></span>
<span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:apply-templates">xsl:apply-templates</a> </span><span style="background-color:#f7faff;">select</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="$tsDoc" </span><span style="background-color:#f7faff;">mode</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="expand-xi"</span><span style="background-color:#f7faff;">/></span>
<span style="background-color:#f7faff;"></</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:variable">xsl:variable</a></span><span style="background-color:#f7faff;">></span>
<span style="color:#808080;font-style:italic;"><!-- Continue processing with XInclude expanded... -->
</span><span style="color:#808080;font-style:italic;">
</span><span style="background-color:#f7faff;"></</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:template">xsl:template</a></span><span style="background-color:#f7faff;">></span>
<span style="color:#808080;font-style:italic;"><!-- Expand xi:include nodes -->
</span><span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:template">xsl:template</a> </span><span style="background-color:#f7faff;">xmlns:xi</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XInclude">"http://www.w3.org/2001/XInclude"</a> </span><span style="background-color:#f7faff;">match</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="xi:include[@href]" </span><span style="background-color:#f7faff;">mode</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="expand-xi"</span><span style="background-color:#f7faff;">></span>
<span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:variable">xsl:variable</a> </span><span style="background-color:#f7faff;">name</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="externalDoc" </span><span style="background-color:#f7faff;">select</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">=<a class="moz-txt-link-rfc2396E" href="mailto:doc(resolve-uri(@href,base-uri(.)))">"doc(resolve-uri(@href, base-uri(.)))"</a></span><span style="background-color:#f7faff;">/></span>
<span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:apply-templates">xsl:apply-templates</a> </span><span style="background-color:#f7faff;">select</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="$externalDoc" </span><span style="background-color:#f7faff;">mode</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="expand-xi"</span><span style="background-color:#f7faff;">/></span>
<span style="background-color:#f7faff;"></</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:template">xsl:template</a></span><span style="background-color:#f7faff;">></span>
<span style="color:#808080;font-style:italic;"><!-- Copy template -->
</span><span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:template">xsl:template</a> </span><span style="background-color:#f7faff;">match</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="node() | @*" </span><span style="background-color:#f7faff;">mode</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="expand-xi"</span><span style="background-color:#f7faff;">></span>
<span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:copy">xsl:copy</a></span><span style="background-color:#f7faff;">></span>
<span style="background-color:#f7faff;"><</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:apply-templates">xsl:apply-templates</a> </span><span style="background-color:#f7faff;">select</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="node() | @*" </span><span style="background-color:#f7faff;">mode</span><span style="color:#008000;background-color:#f7faff;font-weight:bold;">="expand-xi"</span><span style="background-color:#f7faff;">/></span>
<span style="background-color:#f7faff;"></</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:copy">xsl:copy</a></span><span style="background-color:#f7faff;">></span>
<span style="background-color:#f7faff;"></</span><span style="color:#000080;background-color:#f7faff;font-weight:bold;"><a class="moz-txt-link-freetext" href="xsl:template">xsl:template</a></span><span style="background-color:#f7faff;">></span></pre>
</blockquote>
<br>
</p>
<pre class="moz-signature" cols="72">--
Regards,
Radu
--
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
<br>
<br>
On 2/27/2017 7:33 PM, Amanda Galtman wrote:<br>
</div>
<blockquote
cite="mid:BN6PR05MB3122FC0D9B1D80FA0380021C83570@BN6PR05MB3122.namprd05.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I see from the following doc page that
custom XML Refactoring operations disable the XInclude
mechanism.<o:p></o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="https://oxygenxml.com/doc/versions/18.1/ug-editor/topics/custom-refactoring-operations-x-tools.html">https://oxygenxml.com/doc/versions/18.1/ug-editor/topics/custom-refactoring-operations-x-tools.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I understand the purpose of “safe mode” for
the file that the refactoring operation is modifying. In my
case, my refactoring operation needs to retrieve data from an
auxiliary XML file using doc(). The other XML file is a
DocBook targetset file. Read-only access to the targetset file
is good enough, but I really need to get inside the
subordinate XInclude files. Is this possible in the context of
a custom XML Refactoring XSLT operation?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Amanda<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
</body>
</html>