Page 1 of 1

How to remove a word from a element

Posted: Thu May 23, 2019 12:16 pm
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

Re: How to remove a word from a element

Posted: Thu May 23, 2019 12:45 pm
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

Re: How to remove a word from a element

Posted: Thu May 23, 2019 3:46 pm
by ramanath18
Thank you very much Radu.
It's worked.

Ram