I found a way to reproduce - and fix the problem!<div><br></div><div>The variable names that &quot;stopped working&quot; had at some point been defined as options under &quot;configure transformation scenario&quot; &gt; &quot;edit scenario&quot; &gt; &quot;options&quot; (probably by me, so I guess it&#39;s my own fault).</div>

<div><br></div><div>To reproduce;</div><div><br></div><div>1. Create this XProc script:</div><div><div>&lt;p:pipeline xmlns:p=&quot;<a href="http://www.w3.org/ns/xproc">http://www.w3.org/ns/xproc</a>&quot; xmlns:c=&quot;<a href="http://www.w3.org/ns/xproc-step">http://www.w3.org/ns/xproc-step</a>&quot; version=&quot;1.0&quot;&gt;</div>

<div>    &lt;p:variable name=&quot;name&quot; select=&quot;&#39;this is a variable&#39;&quot;/&gt;</div><div>    &lt;p:add-attribute match=&quot;/*&quot; attribute-name=&quot;name&quot;&gt;</div><div>        &lt;p:with-option name=&quot;attribute-value&quot; select=&quot;$name&quot;/&gt;</div>

<div>        &lt;p:input port=&quot;source&quot;&gt;</div><div>            &lt;p:inline&gt;</div><div>                &lt;c:result/&gt;</div><div>            &lt;/p:inline&gt;</div><div>        &lt;/p:input&gt;</div><div>

    &lt;/p:add-attribute&gt;</div><div>&lt;/p:pipeline&gt;</div><div><br></div><div>2. Create a scenario with an option called &quot;name&quot; and the value &quot;this is an option&quot;.</div><div><br></div><div>3. Run the scenario on the pipeline. You will get:</div>

<div>&lt;c:result xmlns:c=&quot;<a href="http://www.w3.org/ns/xproc-step">http://www.w3.org/ns/xproc-step</a>&quot; name=&quot;this is an option&quot;/&gt;</div><div><br></div><div>I don&#39;t know if this is the intended behavior or not, but I&#39;d prefer it if either;</div>

<div>- options that were defined in the scenario, but not in the pipeline were ignored,</div><div>- or at the very least if an option is defined in the scenario that has the same name as a variable in the pipeline, an <a href="http://www.w3.org/TR/xproc/#err.S0004">err:XS0004</a> were thrown.</div>

<div><br></div><div>Regards</div><div>Jostein<br><br><div class="gmail_quote">2011/7/7 Adrian Buza <span dir="ltr">&lt;<a href="mailto:adrian@sync.ro">adrian@sync.ro</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
We&#39;ve tested this with Ubuntu 11.04 but could not reproduce the problem you describe.<br>
<br>
Please copy the attached &#39;log4j.properties&#39; file to the Oxygen installation directory and restart Oxygen. Then reproduce the problem and close Oxygen. You will find a directory named &#39;oxygenLog&#39; in your Desktop directory and inside it the generated log files(oxygen.log.*). Please zip those files and send them to our support email address: <a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a><br>


<br>
The file &#39;log4j.properties&#39; triggers the debug mode which decreases the application performance severely. At the end of the procedure please do not forget to remove this file from the Oxygen installation directory.<br>


<br>
Regards,<br>
Adrian<br>
<br>
Adrian Buza<br>
oXygen XML Editor and Author Support<br>
<a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
<br>
Jostein Austvik Jacobsen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I&#39;m having some (really weird) trouble, and unfortunately I&#39;m unable to reproduce it on other computers, but here&#39;s a short pipeline:<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;p:pipeline xmlns:p=&quot;<a href="http://www.w3.org/ns/xproc" target="_blank">http://www.w3.org/ns/<u></u>xproc</a>&quot; version=&quot;1.0&quot;&gt;<br>
    &lt;p:variable name=&quot;daisy-dir&quot; select=&quot;&#39;daisy-dir&#39;&quot;/&gt;<br>
    &lt;p:variable name=&quot;other-dir&quot; select=&quot;&#39;other-dir&#39;&quot;/&gt;<br>
        &lt;p:add-attribute match=&quot;/*&quot; attribute-name=&quot;daisy-dir&quot;&gt;<br>
        &lt;p:with-option name=&quot;attribute-value&quot; select=&quot;$daisy-dir&quot;/&gt;<br>
        &lt;p:input port=&quot;source&quot;&gt;<br>
            &lt;p:inline&gt;<br>
                &lt;doc/&gt;<br>
            &lt;/p:inline&gt;<br>
        &lt;/p:input&gt;<br>
    &lt;/p:add-attribute&gt;<br>
    &lt;p:add-attribute match=&quot;/*&quot; attribute-name=&quot;other-dir&quot;&gt;<br>
        &lt;p:with-option name=&quot;attribute-value&quot; select=&quot;$other-dir&quot;/&gt;<br>
    &lt;/p:add-attribute&gt;<br>
&lt;/p:pipeline&gt;<br>
<br>
You&#39;d expect to get:<br>
&lt;doc daisy-dir=&quot;daisy-dir&quot; other-dir=&quot;other-dir&quot;/&gt;<br>
<br>
But on my computer with &lt;oXygen/&gt; XML Editor 12.2, build 2011051714 on Ubuntu 11.04, I get:<br>
&lt;doc daisy-dir=&quot;&quot; other-dir=&quot;other-dir&quot;/&gt;<br>
<br>
This only happens in oXygen on my Ubuntu though, not if I run calabash from the command line in Ubuntu or oXygen in Windows; so I don&#39;t know how to reproduce the problem on other computers.<br>
<br>
If I rename the variable from &quot;daisy-dir&quot; to something else, it works. So for some reason, the oXygen installation is ignoring variables that are called &quot;daisy-dir&quot; all of a sudden... I changed it to &quot;input-dir&quot; and it worked for a while, but after a few minutes, oXygen started ignoring variables with that name as well. Doing a &quot;find | xargs grep -i daisy 2&gt;/dev/null&quot; in the oxygen directory gives no relevant hits, so I&#39;m not sure how to debug this further... Is there any logfiles I can provide?<br>


<br>
I have a hunch that it may have to do with variables and options having the same name across files/steps (example below), and how that&#39;s stored internally in either oxygen or calabash, but I&#39;m really not sure. I do this in the pipeline I&#39;m trying to run, but when the option name stops working - it stops working in all pipelines.<br>


<br>
&lt;p:variable name=&quot;input-dir&quot; select=&quot;&#39;something&#39;&quot;/&gt;<br>
...<br>
&lt;p:with-option name=&quot;input-dir&quot; select=&quot;$input-dir&quot;/&gt;<br>
<br>
<br>
Regards<br>
Jostein<br></div></div>
------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
______________________________<u></u>_________________<br>
oXygen-user mailing list<br>
<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a><br>
<a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/<u></u>mailman/listinfo/oxygen-user</a><br>
  <br>
</blockquote>
<br>
<br>log4j.rootCategory= debug, R2<br>
<br>
log4j.appender.R2=org.apache.log4j.RollingFileAppender<br>
log4j.appender.R2.File=${user.home}/Desktop/oxygenLog/oxygen.log<br>
log4j.appender.R2.MaxFileSize=12000KB<br>
log4j.appender.R2.MaxBackupIndex=20<br>
log4j.appender.R2.layout=org.apache.log4j.PatternLayout<br>
log4j.appender.R2.layout.ConversionPattern=%r %p [ %t ] %c - %m%n<br>
<br></blockquote></div><br></div></div>