<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \,serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Thanks, Radu. Yes, adding information in the custom descriptor is exactly what I’ve done so far. Not ideal, but it is OK.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Amanda<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> oXygen-user [mailto:oxygen-user-bounces@oxygenxml.com]
<b>On Behalf Of </b>Oxygen XML Editor Support (Radu Pisoi)<br>
<b>Sent:</b> Tuesday, March 07, 2017 4:43 AM<br>
<b>To:</b> oxygen-user@oxygenxml.com<br>
<b>Subject:</b> Re: [oXygen-user] Can custom XML Refactoring operation resolve XIncludes via doc()?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hi,<span style="font-size:12.0pt"><o:p></o:p></span></p>
<p>No, there is no way to customize the <b>Scope and Filters</b> page from the <b>
XML Refactoring</b> dialog.<o:p></o:p></p>
<p>A possible solution would be to add additional information in the XML Refactoring operation descriptor for this customization. I will register this improvement on our side.<o:p></o:p></p>
<pre>Regards,<o:p></o:p></pre>
<pre>Radu<o:p></o:p></pre>
<pre>--<o:p></o:p></pre>
<pre>Radu Pisoi<o:p></o:p></pre>
<pre><oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger<o:p></o:p></pre>
<pre><a href="http://www.oxygenxml.com">http://www.oxygenxml.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 3/6/2017 11:01 PM, Amanda Galtman wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:windowtext">One follow-up question about custom XML Refactoring operations:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">I like how my descriptor file can contain a text description that shows up in the page of the wizard where the end user sets parameter values. Is there any way for me to add text at the top of the Scope and
 Filters page of the wizard? For my particular operation, it is important that the end user NOT choose “Project” as the scope, and I’d like to be able to reinforce that. It is not a big deal, but it would be nice.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Amanda</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> oXygen-user [<a href="mailto:oxygen-user-bounces@oxygenxml.com">mailto:oxygen-user-bounces@oxygenxml.com</a>]
<b>On Behalf Of </b>Amanda Galtman<br>
<b>Sent:</b> Monday, March 06, 2017 11:10 AM<br>
<b>To:</b> Radu Pisoi <a href="mailto:radu_pisoi@sync.ro"><radu_pisoi@sync.ro></a>;
<a href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a><br>
<b>Subject:</b> Re: [oXygen-user] Can custom XML Refactoring operation resolve XIncludes via doc()?</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="color:windowtext">Radu,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Thanks for the information and suggestion. I see what you mean, and your idea worked in my situation.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Best regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">Amanda</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> oXygen-user [<a href="mailto:oxygen-user-bounces@oxygenxml.com">mailto:oxygen-user-bounces@oxygenxml.com</a>]
<b>On Behalf Of </b>Radu Pisoi<br>
<b>Sent:</b> Thursday, March 02, 2017 10:14 AM<br>
<b>To:</b> <a href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a><br>
<b>Subject:</b> Re: [oXygen-user] Can custom XML Refactoring operation resolve XIncludes via doc()?</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">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:<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre style="background:white"><span style="font-size:9.0pt;background:#F7FAFF"><</span><a href="xsl:template"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:template</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">match</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="/"</span></b><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    </span><i><span style="font-size:9.0pt;color:gray"><!--  ... --></span></i><o:p></o:p></pre>
<pre style="background:white"><i><span style="font-size:9.0pt;color:gray">    </span></i><span style="font-size:9.0pt;background:#F7FAFF"><</span><a href="xsl:variable"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:variable</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">name</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="tsDoc" </span></b><span style="font-size:9.0pt;background:#F7FAFF">select</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="doc('path/to/targetset')"</span></b><span style="font-size:9.0pt;background:#F7FAFF">/></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    <span style="background:#F7FAFF"><</span></span><a href="xsl:variable"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:variable</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">name</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="expandedTS" </span></b><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">        <span style="background:#F7FAFF"><</span></span><a href="xsl:apply-templates"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:apply-templates</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">select</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="$tsDoc" </span></b><span style="font-size:9.0pt;background:#F7FAFF">mode</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="expand-xi"</span></b><span style="font-size:9.0pt;background:#F7FAFF">/></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    <span style="background:#F7FAFF"></</span></span><a href="xsl:variable"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:variable</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt"> </span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    </span><i><span style="font-size:9.0pt;color:gray"><!--  Continue processing with XInclude expanded... --></span></i><o:p></o:p></pre>
<pre style="background:white"><i><span style="font-size:9.0pt;color:gray"> </span></i><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt;background:#F7FAFF"></</span><a href="xsl:template"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:template</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt"> </span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt"> </span><o:p></o:p></pre>
<pre style="background:white"><i><span style="font-size:9.0pt;color:gray"><!-- Expand xi:include nodes --></span></i><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt;background:#F7FAFF"><</span><a href="xsl:template"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:template</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">xmlns:xi</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">=</span></b><a href="http://www.w3.org/2001/XInclude"><b><span style="font-size:9.0pt;background:#F7FAFF">"http://www.w3.org/2001/XInclude"</span></b></a><b><span style="font-size:9.0pt;color:green;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">match</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="xi:include[@href]" </span></b><span style="font-size:9.0pt;background:#F7FAFF">mode</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="expand-xi"</span></b><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    <span style="background:#F7FAFF"><</span></span><a href="xsl:variable"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:variable</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">name</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="externalDoc" </span></b><span style="font-size:9.0pt;background:#F7FAFF">select</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">=</span></b><a href="mailto:doc%28resolve-uri%28@href,base-uri%28.%29%29%29"><b><span style="font-size:9.0pt;background:#F7FAFF">"doc(resolve-uri(@href, base-uri(.)))"</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">/></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    <span style="background:#F7FAFF"><</span></span><a href="xsl:apply-templates"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:apply-templates</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">select</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="$externalDoc" </span></b><span style="font-size:9.0pt;background:#F7FAFF">mode</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="expand-xi"</span></b><span style="font-size:9.0pt;background:#F7FAFF">/></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt;background:#F7FAFF"></</span><a href="xsl:template"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:template</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt"> </span><o:p></o:p></pre>
<pre style="background:white"><i><span style="font-size:9.0pt;color:gray"><!-- Copy template --></span></i><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt;background:#F7FAFF"><</span><a href="xsl:template"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:template</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">match</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="node() | @*" </span></b><span style="font-size:9.0pt;background:#F7FAFF">mode</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="expand-xi"</span></b><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    <span style="background:#F7FAFF"><</span></span><a href="xsl:copy"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:copy</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">        <span style="background:#F7FAFF"><</span></span><a href="xsl:apply-templates"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:apply-templates</span></b></a><b><span style="font-size:9.0pt;color:navy;background:#F7FAFF"> </span></b><span style="font-size:9.0pt;background:#F7FAFF">select</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="node() | @*" </span></b><span style="font-size:9.0pt;background:#F7FAFF">mode</span><b><span style="font-size:9.0pt;color:green;background:#F7FAFF">="expand-xi"</span></b><span style="font-size:9.0pt;background:#F7FAFF">/></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt">    <span style="background:#F7FAFF"></</span></span><a href="xsl:copy"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:copy</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
<pre style="background:white"><span style="font-size:9.0pt;background:#F7FAFF"></</span><a href="xsl:template"><b><span style="font-size:9.0pt;background:#F7FAFF">xsl:template</span></b></a><span style="font-size:9.0pt;background:#F7FAFF">></span><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span><o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Regards,<o:p></o:p></pre>
<pre>Radu<o:p></o:p></pre>
<pre>--<o:p></o:p></pre>
<pre>Radu Pisoi<o:p></o:p></pre>
<pre><oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger<o:p></o:p></pre>
<pre><a href="http://www.oxygenxml.com">http://www.oxygenxml.com</a><o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
On 2/27/2017 7:33 PM, Amanda Galtman wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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 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>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman ,serif",serif"><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>oXygen-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
<pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman ,serif",serif"> </span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>oXygen-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
<pre><a href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>