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

Frank Dissinger frank.dissinger at cgs-oris.com
Tue Feb 14 02:31:12 CST 2023


Hi Radu,


Thank you for your reply. Sorry, what I meant was the "cc_config.xml" 
configuration file, not Schematron, of course. Sorry for the confusion. 
What I currently do is:


     <elementProposals path="image">
         <insertAttribute name="otherprops" value="fmdpi:150"/>
     </elementProposals>


I would also like to have this attribute applied when inserting images 
using the "DITA Reusable Components  > Media" tab. Thank you for 
registering my feature request.


Regards,

Frank


------------------------------------------------------------------------


Am 14.02.2023 um 07:29 schrieb Oxygen XML Editor Support (Radu Coravu):
>
> 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20230214/14ef4f79/attachment.htm>


More information about the oXygen-user mailing list