[oXygen-user] Adding attributes to images inserted from DITA Reusable Components view

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Tue Feb 14 00:29:47 CST 2023


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.dissinger at 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 at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20230214/c54c7ed1/attachment.htm>


More information about the oXygen-user mailing list