Calling Quick fix multiple times on one click

Oxygen general issues.
Srinarayan
Posts: 42
Joined: Tue Jun 08, 2021 3:27 pm

Calling Quick fix multiple times on one click

Post by Srinarayan »

Hi team,

I am writing a rule with quick fix in schematron to wrap the text in an element into p tag. But if there is a mix of PCDATA and tags, I want all the text part to be wrapped in p tag on one click. Is it possible to call quick fix code multiple times on one click by looping or any other mechanism?

Regards
Srinarayan
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Re: Calling Quick fix multiple times on one click

Post by tavy »

Hello Srinarayan,

Probably you can use the "sqf:replace" operation to do this, by matching all the text nodes that you want to wrap.
In order to help you I need an example to understand better what you want to achieve and how your structure looks like. Maybe you can send me a sample XML file and the Schematron rule with the quick fix that you have now.

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply