XML refactoring removes CDATA markup

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mboudreau
Posts: 71
Joined: Sat Jan 07, 2017 1:23 am

XML refactoring removes CDATA markup

Post by mboudreau »

I tried using the XML Refactoring tool to add an attribute to an element that has CDATA content, e.g.,

Code: Select all


<tex-math notation="LaTeX">
<![CDATA[ \( E = mc^2 \) ]]>
</tex-math>
When I added the attribute 'version="MathJax"', the CDATA markup was stripped out, leaving me with

Code: Select all


<tex-math notation="LaTeX" version="MathJax">\( E = mc^2 \)</tex-math>
How can I add the attribute without making any other changes?
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: XML refactoring removes CDATA markup

Post by Radu »

Hi,

Unfortunately the Saxon processor we are using to perform the XML refactoring operations will consider CData sections as plain text so it will lose their original semantics. We have an internal issue registered to somehow try to overcome this limitation and I added your feedback to the opened issue. If we manage to fix it we'll update this forum thread.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
BenDupre
Posts: 4
Joined: Mon Jun 08, 2020 9:02 pm

Re: XML refactoring removes CDATA markup

Post by BenDupre »

Has there been any development on this issue?
Ben Dupre
"The greatest problem with communication is the illusion that it has been achieved." -- GB Shaw
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: XML refactoring removes CDATA markup

Post by Radu »

Hi,

Sorry for the inconvenience but we have not yet found a way to make this work. If we do manage to do that we'll update this forum thread.

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