Schematron Quick fix to add two elements

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

Schematron Quick fix to add two elements

Post by Srinarayan »

Hi Team,


We are creating a schematron quick fix for version 6.3 , for that we need to add two elements with a single quick fix i.e
" <subjectdef keys="audience">
<subjectdef keys=""/>
</subjectdef> "

Can you please let us know is their any way to add two elements with a single quick fix ?

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

Re: Schematron Quick fix to add two elements

Post by tavy »

Hello Srinarayan,

You can do this using the "sqf:add" operation, by specifying the XML fragment directly in the add element. Something like this:

Code: Select all

<sqf:add>
    <subjectdef keys="audience">
        <subjectdef keys=""/>
    </subjectdef>
</sqf:add>
You can find more details about the add operation in our user manual:
https://www.oxygenxml.com/doc/versions/ ... 3h_cgk_54b

There are also some examples available in our user manual:
https://www.oxygenxml.com/doc/versions/ ... aid-title3

I don't know what do you mean by version 6.3, in Oxygen version 6.3 the Schematron quick fix support is not available.

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