<font size=2 face="sans-serif">Hi Felix,</font>
<br>
<br><font size=2 face="sans-serif">I think the XsltOperation is the best/easiest
way to go. </font>
<br>
<br><font size=2 face="sans-serif">The reason why it is not working for
you is probably that you filled the parameter &quot;script&quot; not with
the actual script but with the path to an xsl file (I did the same on my
first try). If you want to hold your script in a separate file just import
it from there. For a custom framework with a folder xsl it would look like:</font>
<br><font size=2 color=#8100ff>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</font><font size=2><br>
</font><font size=2 color=#0060a0>&lt;xsl:stylesheet</font><font size=2 color=#ff8141>
</font><font size=2 color=#00a1e0>xmlns:xsl</font><font size=2 color=#ff8141>=</font><font size=2 color=#a13f00>&quot;</font><a href=http://www.w3.org/1999/XSL/Transform><font size=2 color=#a13f00>http://www.w3.org/1999/XSL/Transform</font></a><font size=2 color=#a13f00>&quot;</font><font size=2 color=#ff8141>
version=</font><font size=2 color=#a13f00>&quot;2.0&quot;</font><font size=2 color=#0000a1>&gt;</font><font size=2><br>
 &nbsp; &nbsp;</font><font size=2 color=#0060a0>&lt;xsl:import</font><font size=2 color=#ff8141>
href=</font><font size=2 color=#a13f00>&quot;xsl/MyTransformation.xsl&quot;</font><font size=2 color=#0000a1>/&gt;</font><font size=2><br>
</font><font size=2 color=#0060a0>&lt;/xsl:stylesheet&gt;</font>
<br><font size=2 face="sans-serif"><br>
Regards,</font>
<br><font size=2 face="sans-serif"><br>
Patrik<br>
<br>
------------------------------------------------------------------<br>
Systemarchitektur &amp; IT-Projekte<br>
Tel: +49 40 33449-1142<br>
Fax: +49 40 33449-1400<br>
E-Mail: patrik.stellmann@gdv-dl.de</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Felix Sasaki &lt;fsasaki@w3.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">An: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">oxygen-user@oxygenxml.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">09.11.2013 10:52</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">[oXygen-user]
Removing or adding two attributes at the same time</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Gesendet von: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">oxygen-user-bounces@oxygenxml.com</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Hi all,<br>
<br>
For an oXygen framework (DocBook), I would like to exectue an operation
<br>
that removes or adds two attributes at the same time after the user has
<br>
clicked on a button.<br>
<br>
The use case is that in my DocBook customization these attributes need
<br>
to appear at the same time. Adding or removing just one of them would <br>
make the file invalid, and having two buttons is not an option, because
<br>
there are many such combined attributes, the GUI would get too full.<br>
<br>
The ChangeAttributeOperation at<br>
</font></tt><a href="http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/dg-default-author-operations.html"><tt><font size=2>http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/dg-default-author-operations.html</font></tt></a><tt><font size=2><br>
didn't work for me since I cannot have two of these operations <br>
associated with one button.<br>
<br>
Looking at<br>
</font></tt><a href="http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/the-action-dialog.html"><tt><font size=2>http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/the-action-dialog.html#the-action-dialog</font></tt></a><tt><font size=2><br>
it seems not possible to trigger two operations via one action: &quot;An
<br>
action has one or mode operation modes. The evaluation of an XPath <br>
expression activates an operation mode. The first enabled operation mode
<br>
is activated when you trigger the action.&quot;<br>
<br>
I also tried to evoke an XSLT transformation via XSLTOperation that <br>
removes the attributes. But although the &quot;script&quot; value IMO opinion
<br>
points to the right location of the XSLT and that XSLT file is valid, I
<br>
get an error from evoking the action, saying:<br>
&quot;Couldn't exectute operation <br>
ro.sync.ecss.extensions.commons.operations.TransformOperation because <br>
... cannot create Transformer: failed to compile stylesheet.&quot;<br>
<br>
Any ideas how to move forward? If the XSLTOperation is the way to go: is
<br>
there an example in an existing framework that demonstrates how the <br>
operation is used?<br>
<br>
Thanks,<br>
<br>
Felix<br>
_______________________________________________<br>
oXygen-user mailing list<br>
oXygen-user@oxygenxml.com<br>
</font></tt><a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user"><tt><font size=2>http://www.oxygenxml.com/mailman/listinfo/oxygen-user</font></tt></a><tt><font size=2><br>
</font></tt>
<br><p></p><p><strong>GDV Dienstleistungs-GmbH &amp; Co. KG</strong><br><span style="line-height: 1.22;">Glockengießerwall 1<br></span><span style="line-height: 1.22;">D-20095 Hamburg<br></span><span style="line-height: 1.22;">www.gdv-dl.de</span></p><p><span style="line-height: 1.22;">Sitz und Registergericht: Hamburg<br></span><span style="line-height: 1.22;">HRA 93 894<br></span><span style="line-height: 1.22;">USt.-IdNr : DE 205183123</span></p><p><span style="line-height: 1.22;">Komplementärin:<br></span><span style="line-height: 1.22;">GDV Beteiligungsgesellschaft mbH<br></span><span style="line-height: 1.22;">Sitz und Registergericht: Hamburg<br></span><span style="line-height: 1.22;">HRB 71 153</span></p><p><span style="line-height: 1.22;">Geschäftsführer:<br></span><span style="line-height: 1.22;">Volker Sonnenburg<br></span><span style="line-height: 1.22;">Heiko Beermann</span></p><p><span style="line-height: 1.22;">------------------------------------------------------------------<br></span><span style="line-height: 1.22;">Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe der E-Mail ist nicht gestattet.</span></p><p><span style="line-height: 1.22;">This e-mail and any attached files may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distributionof the material in this e-mail is strictly forbidden.</span></p><p></p>