Refactor: change the value of an @xml:id attribute
Are you missing a feature? Request its implementation here.
-
- Posts: 87
- Joined: Tue Jan 01, 2013 3:19 pm
Refactor: change the value of an @xml:id attribute
Hi,
id like to suggest the change of an @xml:id Attribute as a new refactoring action.
Changing the value of an @xml:id attribute requires the change of all references to this attribute. Thats the motivation for this feature request. It would be especially helpfull in Projekts with a master Document to set the scope for changes.
Sincerely, Frank Steimke
id like to suggest the change of an @xml:id Attribute as a new refactoring action.
Changing the value of an @xml:id attribute requires the change of all references to this attribute. Thats the motivation for this feature request. It would be especially helpfull in Projekts with a master Document to set the scope for changes.
Sincerely, Frank Steimke
-
- Posts: 78
- Joined: Wed Jun 22, 2016 2:48 pm
Re: Refactor: change the value of an @xml:id attribute
Post by adrian_sorop »
Hi,
Currently, I can think of two built-in XML Refactoring operations that are able to change the value of xml:id attribute.
The operations are generic, but you can configure them for specific tasks.
The operations are:
1) Add/Change attribute - https://www.oxygenxml.com/doc/versions/ ... yz_bgk_54b
2) Replace in attribute value - https://www.oxygenxml.com/doc/versions/ ... 11_cgk_54b
Let me know if you encounter any problems while running them.
Adrian S.
Currently, I can think of two built-in XML Refactoring operations that are able to change the value of xml:id attribute.
The operations are generic, but you can configure them for specific tasks.
The operations are:
1) Add/Change attribute - https://www.oxygenxml.com/doc/versions/ ... yz_bgk_54b
2) Replace in attribute value - https://www.oxygenxml.com/doc/versions/ ... 11_cgk_54b
Let me know if you encounter any problems while running them.
Adrian S.
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Refactor: change the value of an @xml:id attribute
Post by chrispitude »
There are perhaps some tricky aspects to keep in mind:
- @id values do not need to be unique across files.
- @id values do not need to be unique across topics, even when they are in the same file.
- @id values can be used as a part of @keyref references.
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