XML Refactoring introduces unwanted attributes in child nodes

<oXygen/> general issues.
kg129
Posts: 6

XML Refactoring introduces unwanted attributes in child nodes

Fri Jun 23, 2017 1:18 am

I'm trying XML Refactoring with the operation "Wrap Contents of Tag". However, unwanted attributes are introduced in child nodes that are contained in the content of the tag that is being selected.

Suppose my XPath picks out some element <parent> and wraps its content with <inserted_tag> such that

<parent>
some text
<child>text</child>
</parent>

On previewing I get

<parent>
<inserted_tag>some text
<child
xmlns="zzz" xmlns:zz="zzz" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">
text</child>
</parent>

where the attributes in red are unwanted attributes. Any idea why these are introduced and how I can avoid that?

Thanks for the help.

Karan.
radu_pisoi
Posts: 310
Location: Craiova

Re: XML Refactoring introduces unwanted attributes in child nodes

Fri Jun 23, 2017 2:26 pm

Hi,

We are not aware of a such issue so it would be great if you could provide us additional information.

Have you used the predefined Wrap element contents operation or have you implemented a custom XML Refactoring operation?

If you are using the predefined Wrap element contents operation, could you send us a small XML sample file to reproduce it on support@oxygenxml.com?

Thank you for reporting this issue.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
kg129
Posts: 6

Re: XML Refactoring introduces unwanted attributes in child nodes

Fri Jun 23, 2017 4:12 pm

Thanks for the follow-up. I'm using the predefined operation. I'll try and get a sample file and email it as you say. I wonder if the associated schema rules are causing Oxygen to insert those attributes.

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 1 guest