<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Radu,</p>
<p><br>
</p>
<p>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:<br>
</p>
<p><br>
</p>
<p> <elementProposals path="image"><br>
<insertAttribute name="otherprops"
value="fmdpi:150"/><br>
</elementProposals></p>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
<p>Regards,</p>
<p>Frank</p>
<p><br>
</p>
<hr width="100%" size="2">
<p><br>
</p>
<div class="moz-cite-prefix">Am 14.02.2023 um 07:29 schrieb Oxygen
XML Editor Support (Radu Coravu):<br>
</div>
<blockquote type="cite"
cite="mid:f3676786-b9eb-5714-084d-50a80ff61437@oxygenxml.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi Frank,</p>
<p><br>
</p>
<p>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. <br>
</p>
<p>I suspect you used the Oxygen specific "cc_config.xml"
configuration file to specify that the attribute @scale is
required on an <image> element.</p>
<p>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.</p>
<p>I added an internal issue to consider improving this in a
future version:<br>
</p>
<p><br>
</p>
<p> EXM-52437 Take into account required attributes when
inserting image references</p>
<p><br>
</p>
<p>Regards,</p>
<p>Radu</p>
<pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
<div class="moz-cite-prefix">On 2/13/23 19:28, Frank Dissinger
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:69d699b0-e0fc-3f7e-9fdd-d94021132ad3@cgs-oris.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<p>Hi list,</p>
<p><br>
</p>
<p>I have defined Schematron rules which automatically add
attributes to <image> elements when inserted.</p>
<p>However, these rules are not applied when inserting images
using the DITA Reusable Components view. Can this be done?</p>
<p><br>
</p>
<p>Regards,</p>
<p>Frank<br>
</p>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<title></title>
<div class="moz-signature">
<style>div.signature {font-family: Verdana, sans-serif; font-size: 10pt; color: #7F8C8D; padding-top: 0.4em;}div.name {padding-bottom: 0.8em; padding-top: 0.8em}div.contact {padding-bottom: 0.8em;}p {margin: 0;}span.separator {border-top-style: dotted; border-top-width: 2px; padding-top: 0.6em;}a {color: inherit}</style>
</div>
</div>
</blockquote>
</blockquote>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<div class="moz-signature">
<style>
div.signature {font-family: Verdana, sans-serif; font-size: 10pt; color: #7F8C8D; padding-top: 0.4em;}
div.name {padding-bottom: 0.8em; padding-top: 0.8em}
div.contact {padding-bottom: 0.8em;}
p {margin: 0;}
span.separator {border-top-style: dotted; border-top-width: 2px; padding-top: 0.6em;}
a {color: inherit}
</style>
<div class="signature">
<div class="name">
<p><strong>Frank Dissinger</strong></p>
<p>Documentation Manager</p>
<p>....................................................................</p>
</div>
<div class="contact">
<p><strong>CGS Publishing Technologies International GmbH</strong></p>
<p><strong>Email </strong><a
href="mailto:frank.dissinger@cgs-oris.com"
target="_blank" class="moz-txt-link-freetext">frank.dissinger@cgs-oris.com</a>
| <strong>Web</strong> <a
href="http://www.cgs-oris.com/" target="_blank">www.cgs-oris.com</a></p>
<p><strong>Address</strong> Kettelerstr. 24 | D-63512
Hainburg | Germany</p>
<p><strong>Phone</strong> +49 6182 9626-27 | <strong>Fax</strong>
+49 6182 9626-99</p>
<p><strong>Commercial register</strong> Offenbach, HRB no.
21495</p>
<p><strong>Managing directors</strong> Bernd Rückert,
Christoph Thommessen</p>
<p><br>
</p>
<a href="https://www.cgs-oris.com/signatur"><img
alt="https://www.cgs-oris.com/Signatur.png"
longdesc="https://www.cgs-oris.com/signatur"
src="https://www.cgs-oris.com/Signatur.png" width="394"
height="200"></a> </div>
</div>
</div>
</div>
</body>
</html>