Find&Replace attribute values across files
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 77
- Joined: Tue Nov 14, 2017 8:34 pm
Find&Replace attribute values across files
Hi,
I have used audience=compA and audience=compB across dita files. This attribute is used by the ditaval file. I would like to swap the values. How can i do that effectively across files?
When i look for the value using 'Find and Replace in Files' option, the tool finds that across attributes. I would like the tool to find it only in the 'audience' attribute. Is there a way to specify that in the tool?
Thanks...
I have used audience=compA and audience=compB across dita files. This attribute is used by the ditaval file. I would like to swap the values. How can i do that effectively across files?
When i look for the value using 'Find and Replace in Files' option, the tool finds that across attributes. I would like the tool to find it only in the 'audience' attribute. Is there a way to specify that in the tool?
Thanks...
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Find&Replace attribute values across files
Hi,
The "Find/Replace in Files" dialog has a "Restrict to XPath" filter which could be set to @audience.
Or you can create a predefined XSLT-based XML refactoring operation:
https://www.oxygenxml.com/doc/versions/ ... ample.html
which uses a stylesheet like this to modify the values of a profiling attribute to something else:
https://github.com/oxygenxml/dita-refac ... eValue.xsl
Regards,
Radu
The "Find/Replace in Files" dialog has a "Restrict to XPath" filter which could be set to @audience.
Or you can create a predefined XSLT-based XML refactoring operation:
https://www.oxygenxml.com/doc/versions/ ... ample.html
which uses a stylesheet like this to modify the values of a profiling attribute to something else:
https://github.com/oxygenxml/dita-refac ... eValue.xsl
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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