Oxygen smart paste issues!

mu258770
Posts: 138
Joined: Mon Aug 18, 2014 4:11 pm

Oxygen smart paste issues!

Post by mu258770 » Wed Sep 16, 2020 11:56 am

Hi,
.
In Oxygen Author Eclipse and Web, sometimes the smart paste is causing DTD errors.

Example:- Consider I have dita content as below,

Code: Select all

    <steps>
      <step id="step1">
         <cmd>content inside cmd</cmd>
      </step>
      <stepsection>content inside stepsection</stepsection>
      <step>
        <cmd/>
      </step>
    </steps> 
Now if I copy the <stepsection> and paste it after second <step>, the paste will work. But it will make the whole content invalid as <stepsection> is always supposed to be followed with another <step>.

This will be the same even if I configure the smart paste option with "Reject action when its result is invalid" enabled.

Could you please let me know whether this would be improved in future?

Regards,
Shabeer

mu258770
Posts: 138
Joined: Mon Aug 18, 2014 4:11 pm

Re: Oxygen smart paste issues!

Post by mu258770 » Fri Oct 02, 2020 11:47 am

Hi team,

Could you please answer this.

Thanks in advance!

Regards,
Shabeer

Radu
Posts: 7154
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen smart paste issues!

Post by Radu » Fri Oct 02, 2020 3:57 pm

Hi Shabeer,

Sorry for the delay, somehow we missed this post.
Indeed in this case the smart paste ends up making the document invalid. I added an internal issue to look into this although I'm not sure what we could do in such cases. Would you expect the paste not to work and report an error? Or for somehow for Oxygen to automatically add a new step after the pasted stepsection?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

mu258770
Posts: 138
Joined: Mon Aug 18, 2014 4:11 pm

Re: Oxygen smart paste issues!

Post by mu258770 » Mon Oct 05, 2020 10:37 am

Hi Radu,

Thank you for the response.

I would expect the paste not to work if I have checked the option "Reject action when its result is invalid".

Regards,
Shabeer

Radu
Posts: 7154
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen smart paste issues!

Post by Radu » Tue Oct 06, 2020 7:30 am

Hi Shabeer,

Thanks, I added the details on the opened issue.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply