Excellent, thanks!<div><br></div><div>Jostein<br><br><div class="gmail_quote">2011/8/5 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>
I just wanted to let you know that this problem has been resolved in the latest build of Oxygen 12.2, 2011080114:<br>
&gt; Options declared in an XProc transformation scenario no longer overwrite variables with the same name that are declared in an XProc script used in that scenario.<br>
<br>
You can download it from our web site:<br>
<a href="http://www.oxygenxml.com/download.html" target="_blank">http://www.oxygenxml.com/<u></u>download.html</a><br>
<br>
The complete list of bug-fixes for this build can be found here:<br>
<a href="http://www.oxygenxml.com/build_history.html#2011080114" target="_blank">http://www.oxygenxml.com/<u></u>build_history.html#2011080114</a><br>
<br>
Let us know if you encounter further problems with this build.<div class="im"><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>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I found a way to reproduce - and fix the problem!<br>
<br>
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).<br>


<br>
To reproduce;<br>
<br>
1. Create this XProc script:<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; xmlns:c=&quot;<a href="http://www.w3.org/ns/xproc-step" target="_blank">http://www.w3.org/ns/<u></u>xproc-step</a>&quot; version=&quot;1.0&quot;&gt;<br>


    &lt;p:variable name=&quot;name&quot; select=&quot;&#39;this is a variable&#39;&quot;/&gt;<br>
    &lt;p:add-attribute match=&quot;/*&quot; attribute-name=&quot;name&quot;&gt;<br>
        &lt;p:with-option name=&quot;attribute-value&quot; select=&quot;$name&quot;/&gt;<br>
        &lt;p:input port=&quot;source&quot;&gt;<br>
            &lt;p:inline&gt;<br>
                &lt;c:result/&gt;<br>
            &lt;/p:inline&gt;<br>
        &lt;/p:input&gt;<br>
    &lt;/p:add-attribute&gt;<br>
&lt;/p:pipeline&gt;<br>
<br>
2. Create a scenario with an option called &quot;name&quot; and the value &quot;this is an option&quot;.<br>
<br>
3. Run the scenario on the pipeline. You will get:<br>
&lt;c:result xmlns:c=&quot;<a href="http://www.w3.org/ns/xproc-step" target="_blank">http://www.w3.org/ns/<u></u>xproc-step</a>&quot; name=&quot;this is an option&quot;/&gt;<br>
<br>
I don&#39;t know if this is the intended behavior or not, but I&#39;d prefer it if either;<br>
- options that were defined in the scenario, but not in the pipeline were ignored,<br></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 err:XS0004 &lt;<a href="http://www.w3.org/TR/xproc/#err.S0004" target="_blank">http://www.w3.org/TR/xproc/#<u></u>err.S0004</a>&gt; were thrown.<br>


<br>
Regards<br>
Jostein<br>
<br>
2011/7/7 Adrian Buza &lt;<a href="mailto:adrian@sync.ro" target="_blank">adrian@sync.ro</a> &lt;mailto:<a href="mailto:adrian@sync.ro" target="_blank">adrian@sync.ro</a>&gt;&gt;<div class="im"><br>
<br>
    Hello,<br>
<br>
    We&#39;ve tested this with Ubuntu 11.04 but could not reproduce the<br>
    problem you describe.<br>
<br>
    Please copy the attached &#39;log4j.properties&#39; file to the Oxygen<br>
    installation directory and restart Oxygen. Then reproduce the<br>
    problem and close Oxygen. You will find a directory named<br>
    &#39;oxygenLog&#39; in your Desktop directory and inside it the generated<br>
    log files(oxygen.log.*). Please zip those files and send them to<br>
    our support email address: <a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a><br></div>
    &lt;mailto:<a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a>&gt;<div class="im"><br>
<br>
    The file &#39;log4j.properties&#39; triggers the debug mode which<br>
    decreases the application performance severely. At the end of the<br>
    procedure please do not forget to remove this file from the Oxygen<br>
    installation directory.<br>
<br>
    Regards,<br>
    Adrian<br>
<br>
    Adrian Buza<br>
    oXygen XML Editor and Author Support<br></div>
    <a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a> &lt;mailto:<a href="mailto:support@oxygenxml.com" target="_blank">support@oxygenxml.com</a>&gt;<div><div></div><div class="h5"><br>
    <a href="http://www.oxygenxml.com" target="_blank">http://www.oxygenxml.com</a><br>
<br>
    Jostein Austvik Jacobsen wrote:<br>
<br>
        I&#39;m having some (really weird) trouble, and unfortunately I&#39;m<br>
        unable to reproduce it on other computers, but here&#39;s a short<br>
        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<br>
        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<br>
        calabash from the command line in Ubuntu or oXygen in Windows;<br>
        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,<br>
        it works. So for some reason, the oXygen installation is<br>
        ignoring variables that are called &quot;daisy-dir&quot; all of a<br>
        sudden... I changed it to &quot;input-dir&quot; and it worked for a<br>
        while, but after a few minutes, oXygen started ignoring<br>
        variables with that name as well. Doing a &quot;find | xargs grep<br>
        -i daisy 2&gt;/dev/null&quot; in the oxygen directory gives no<br>
        relevant hits, so I&#39;m not sure how to debug this further... Is<br>
        there any logfiles I can provide?<br>
<br>
        I have a hunch that it may have to do with variables and<br>
        options having the same name across files/steps (example<br>
        below), and how that&#39;s stored internally in either oxygen or<br>
        calabash, but I&#39;m really not sure. I do this in the pipeline<br>
        I&#39;m trying to run, but when the option name stops working - it<br>
        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>
        ------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
        ______________________________<u></u>_________________<br>
        oXygen-user mailing list<br></div></div>
        <a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.com</a> &lt;mailto:<a href="mailto:oXygen-user@oxygenxml.com" target="_blank">oXygen-user@oxygenxml.<u></u>com</a>&gt;<div class="im">

<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>
<br>
<br>
    log4j.rootCategory= debug, R2<br>
<br>
    log4j.appender.R2=org.apache.<u></u>log4j.RollingFileAppender<br>
    log4j.appender.R2.File=${user.<u></u>home}/Desktop/oxygenLog/<u></u>oxygen.log<br>
    log4j.appender.R2.MaxFileSize=<u></u>12000KB<br>
    log4j.appender.R2.<u></u>MaxBackupIndex=20<br>
    log4j.appender.R2.layout=org.<u></u>apache.log4j.PatternLayout<br>
    log4j.appender.R2.layout.<u></u>ConversionPattern=%r %p [ %t ] %c - %m%n<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>