XML Refactoring introduces unwanted attributes in child nodes
Oxygen general issues.
-
- Posts: 6
- Joined: Tue Feb 21, 2017 5:40 pm
XML Refactoring introduces unwanted attributes in child nodes
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.
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.
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: XML Refactoring introduces unwanted attributes in child nodes
Post by radu_pisoi »
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.
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 6
- Joined: Tue Feb 21, 2017 5:40 pm
Re: XML Refactoring introduces unwanted attributes in child nodes
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.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service