Hi Frank,
With Schematron you can report a validation error for example when an
image does not have a certain attribute. You can also add a quick fix
action to quickly add a certain attribute to an image if missing. But
Schematron does not automatically make changes to the content inserted
in the document.
I suspect you used the Oxygen specific "cc_config.xml" configuration
file to specify that the attribute @scale is required on an <image> element.
This indeed is not taken into account when images are inserted using the
"DITA Reusable Components->Media" tab or the toolbar action to insert an
image.
I added an internal issue to consider improving this in a future version:
EXM-52437 Take into account required attributes when inserting
image references
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 2/13/23 19:28, Frank Dissinger wrote:
Hi list,
I have defined Schematron rules which automatically add attributes to
<image> elements when inserted.
However, these rules are not applied when inserting images using the
DITA Reusable Components view. Can this be done?
Regards,
Frank
--
*Frank Dissinger*
Documentation Manager
....................................................................
*CGS Publishing Technologies International GmbH*
*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com
<http://www.cgs-oris.com/>
*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany
*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99
*Commercial register* Offenbach, HRB no. 21495
*Managing directors* Bernd Rückert, Christoph Thommessen
https://www.cgs-oris.com/Signatur.png <https://www.cgs-oris.com/signatur>
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user