How to remove a word from a element

Oxygen general issues.
ramanath18
Posts: 2
Joined: Thu May 23, 2019 12:09 pm

How to remove a word from a element

Post by ramanath18 »

Hi,
I want to remove a single word form a heading (<title>). I used the XML refactoring option (Delete element content) but it removes all the content.
But I need to remove an only a single word from the title.
Is there any option to do this?
Could anyone of you please assist on this, as I want to do this on n number files.

Thanks in advance.
Ram
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to remove a word from a element

Post by Radu »

Hi Ram,

How about if you use our "Find/Replace in Files" dialog? It has a "Restrict to XPath" field where you can input //title and it will only perform the replacement in titles.
Otherwise you can create your own refactoring XSLT stylesheet:

https://www.oxygenxml.com/doc/versions/ ... tools.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ramanath18
Posts: 2
Joined: Thu May 23, 2019 12:09 pm

Re: How to remove a word from a element

Post by ramanath18 »

Thank you very much Radu.
It's worked.

Ram
Post Reply