Page 1 of 1

Calling Quick fix multiple times on one click

Posted: Wed Aug 25, 2021 2:26 pm
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

Re: Calling Quick fix multiple times on one click

Posted: Thu Aug 26, 2021 9:14 am
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