Generate HTML in Text view without extra attributes

Oxygen general issues.
ann.jensen
Posts: 313
Joined: Wed Jun 17, 2015 10:19 am

Generate HTML in Text view without extra attributes

Post by ann.jensen »

Hi,
I want to use Oxygen XML Author to paste in text into Author view and generate HTML in Text view but it is adding unnecessary attributes like
style and shape attributes.
I wonder is it configurable to ask it to not add these attributes?
Thanks in advance,
Ann
Radu
Posts: 9286
Joined: Fri Jul 09, 2004 5:18 pm

Re: Generate HTML in Text view without extra attributes

Post by Radu »

Hi Ann,
Just to see if I understand, are you copying content from a web browser and then pasting the content in an HTML document opened in Oxygen in the Author visual editing mode? If those @style and @shape attributes show up, this means they were part of the pasted HTML content, Oxygen does not know if they are really necessary or not. Maybe you can create a custom XML refactoring action in XSLT for example to remove them later: https://www.oxygenxml.com/doc/versions/ ... tools.html
Or use some kind of regular expression Find/Replace in the Text editing mode to remove the attributes.

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