[oXygen-user] Inserting current date into DITA file

2023-02-14 Thread Frank Dissinger

Hi Radu,


Works like a charm. Thank you!!!


Regards,

Frank





Am 14.02.2023 um 10:27 schrieb Oxygen XML Editor Support (Radu Coravu):


Hi Frank,


I created a small DITA OT plugin (please see attached) which adds the 
same customization you have for Miramo to all XHTML-based outputs, 
including CHM. You can look into it to see how the plugin works.


DITA OT plugins are installed something like this:


https://www.oxygenxml.com/doc/ug-editor/topics/dita-ot-install-plugin.html


Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 2/14/23 10:50, Frank Dissinger wrote:


Hi Radu,


Thank you for your reply. I am afraid I am not XSLT-savvy enough to 
adapt sketched code and I have never created any DITA-OT plugin. I 
would need the exact code and precise instructions where to put that 
code in the CHM transformation...



I wonder whether the following solution I found for MiramoPDF could 
be adapted to oXygen's CHM transformation?




Copyright.dita



...\Oxygen XML Editor 
21\frameworks\dita\DITA-OT3.x\plugins\com.miramo.oris-mmpdf\config\xsl\custom.xsl

http://www.w3.org/1999/XSL/Transform;
    xmlns:xs="http://www.w3.org/2001/XMLSchema; 
exclude-result-prefixes="xs opentopic" version="2.0"

    xmlns:mm="http://www.miramo.com/XSL/Transform;
    xmlns:opentopic="http://www.idiominc.com/opentopic;>
    

*select="format-date(current-date(), '[Y0001]')"/>

    
       
    *



Could this code be added somewhere in the CHM transformation?

Regards,
Frank


Am 14.02.2023 um 07:10 schrieb Oxygen XML Editor Support (Radu Coravu):


Hi Frank,


An Oxygen editor variable expands only once. You seem to need some 
kind of macro which would expand every time you publish.


So you seem to need more like a publishing customization.

For DITA XML maybe you can use the  element with a certain name:



and then create a DITA Open Toolkit XSLT-based customization plugin 
which matches this element at publishing time and replaces it with 
the current date. Are you familiar with XSLT? Would you like to 
pursue this direction? If so maybe I can try to sketch a small 
publishing plugin which would do this.



Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 2/13/23 18:36, Frank Dissinger wrote:


Hi list,


How can I insert the current date into a dita file? I would like to 
have oXygen automatically update the year of a copyright notice. I 
know that I can define editor variables. But how can I embed them 
in the dita code?



If this needs to be tied to the XSL that produces the deliverable: 
I need this for CHM, which I generate with oXygen. (I have already 
found a solution for MiramoPDF. ) And I'd need to know where 
exactly to add the code... Thank you.



Regards,

Frank


*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Inserting current date into DITA file

2023-02-14 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Frank,


I created a small DITA OT plugin (please see attached) which adds the 
same customization you have for Miramo to all XHTML-based outputs, 
including CHM. You can look into it to see how the plugin works.


DITA OT plugins are installed something like this:


https://www.oxygenxml.com/doc/ug-editor/topics/dita-ot-install-plugin.html


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 2/14/23 10:50, Frank Dissinger wrote:


Hi Radu,


Thank you for your reply. I am afraid I am not XSLT-savvy enough to 
adapt sketched code and I have never created any DITA-OT plugin. I 
would need the exact code and precise instructions where to put that 
code in the CHM transformation...



I wonder whether the following solution I found for MiramoPDF could be 
adapted to oXygen's CHM transformation?




Copyright.dita



...\Oxygen XML Editor 
21\frameworks\dita\DITA-OT3.x\plugins\com.miramo.oris-mmpdf\config\xsl\custom.xsl

http://www.w3.org/1999/XSL/Transform;
    xmlns:xs="http://www.w3.org/2001/XMLSchema; 
exclude-result-prefixes="xs opentopic" version="2.0"

    xmlns:mm="http://www.miramo.com/XSL/Transform;
    xmlns:opentopic="http://www.idiominc.com/opentopic;>
    

*select="format-date(current-date(), '[Y0001]')"/>

    
       
    *



Could this code be added somewhere in the CHM transformation?

Regards,
Frank


Am 14.02.2023 um 07:10 schrieb Oxygen XML Editor Support (Radu Coravu):


Hi Frank,


An Oxygen editor variable expands only once. You seem to need some 
kind of macro which would expand every time you publish.


So you seem to need more like a publishing customization.

For DITA XML maybe you can use the  element with a certain name:



and then create a DITA Open Toolkit XSLT-based customization plugin 
which matches this element at publishing time and replaces it with 
the current date. Are you familiar with XSLT? Would you like to 
pursue this direction? If so maybe I can try to sketch a small 
publishing plugin which would do this.



Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 2/13/23 18:36, Frank Dissinger wrote:


Hi list,


How can I insert the current date into a dita file? I would like to 
have oXygen automatically update the year of a copyright notice. I 
know that I can define editor variables. But how can I embed them in 
the dita code?



If this needs to be tied to the XSL that produces the deliverable: I 
need this for CHM, which I generate with oXygen. (I have already 
found a solution for MiramoPDF. ) And I'd need to know where exactly 
to add the code... Thank you.



Regards,

Frank
--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 



___
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

--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 

___
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


[oXygen-user] Expand/Collapse all with one cliock

2023-02-14 Thread Frank Dissinger
These commands do what they say: The expand or collapse ALL. What I want 
is: Expand or collapse only sibling elements (elements on the same level 
as the element on which I click).






Am 13.02.2023 um 22:29 schrieb Stefan Jung:

Frank,

Have you tried the "collapse all" in the contextual menu?

Best


Gesendet mit OX Mail

Frank Dissinger > hat am February 13, 2023 um 
6:32 PM geschrieben:


Hi list,


Is it possible to expand/collapse all items at the same level with
just one click? I tried all combinations such as Ctrl-click,
Alt-click, Shift-Ctrl-click etc., but to know avail. I refer to
the Project window, DITA Maps Manager and Outline view. This would
be a useful feature. FrameMaker can do it! 


Regards,

Frank

-- 


*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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



--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


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

2023-02-14 Thread Frank Dissinger

...because I do not know how to do it. 



Am 13.02.2023 um 22:32 schrieb Stefan Jung:

Hi Frank,

If you always want to add the same attributes to all
images and Schematron is not good enough, why don't you create a new 
element which has these attributes set by default? Or you override the 
XSLT templates and add the attributes during the DITA-OT transformation?


BR



Gesendet mit OX Mail

Frank Dissinger > hat am February 13, 2023 um 
6:28 PM geschrieben:


Hi list,


I have defined Schematron rules which automatically add attributes
to  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


*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



--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Inserting current date into DITA file

2023-02-14 Thread Frank Dissinger

Hi Stefan,


Thank you for your reply. I already did a similar thing for the 
MiramoPDF plug-in:



    select="format-date(current-date(), '[Y0001]')"/>

    
       
    


It was a matter of just adding this code to a "custom.xsl" file. In 
oXygen's CHM tranformation, I wouldn't know where add this code. I am 
not XSLT savvy enough.



Regards,

Frank




Am 13.02.2023 um 22:39 schrieb Stefan Jung:

Hi Frank,

It depends a little bit where exactly you want to have that code and 
for what purpose. If you are looking for an inline element, which can 
be inserted everywhere, you can create a new element or you use, for 
example, a phrase element with an outputclass attribute and then 
inject the date in the format of your choice in XSLT.




Best regards



Gesendet mit OX Mail

Frank Dissinger > hat am February 13, 2023 um 
5:37 PM geschrieben:


Hi list,


How can I insert the current date into a dita file? I would like
to have oXygen automatically update the year of a copyright
notice. I know that I can define editor variables. But how can I
embed them in the dita code?


If this needs to be tied to the XSL that produces the deliverable:
I need this for CHM, which I generate with oXygen. (I have already
found a solution for MiramoPDF. ) And I'd need to know where
exactly to add the code... Thank you.


Regards,

Frank
-- 


*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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



--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Inserting current date into DITA file

2023-02-14 Thread Frank Dissinger

Hi Radu,


Thank you for your reply. I am afraid I am not XSLT-savvy enough to 
adapt sketched code and I have never created any DITA-OT plugin. I would 
need the exact code and precise instructions where to put that code in 
the CHM transformation...



I wonder whether the following solution I found for MiramoPDF could be 
adapted to oXygen's CHM transformation?




Copyright.dita



...\Oxygen XML Editor 
21\frameworks\dita\DITA-OT3.x\plugins\com.miramo.oris-mmpdf\config\xsl\custom.xsl

http://www.w3.org/1999/XSL/Transform;
    xmlns:xs="http://www.w3.org/2001/XMLSchema; 
exclude-result-prefixes="xs opentopic" version="2.0"

    xmlns:mm="http://www.miramo.com/XSL/Transform;
    xmlns:opentopic="http://www.idiominc.com/opentopic;>
    

*

    
       
    *



Could this code be added somewhere in the CHM transformation?

Regards,
Frank


Am 14.02.2023 um 07:10 schrieb Oxygen XML Editor Support (Radu Coravu):


Hi Frank,


An Oxygen editor variable expands only once. You seem to need some 
kind of macro which would expand every time you publish.


So you seem to need more like a publishing customization.

For DITA XML maybe you can use the  element with a certain name:



and then create a DITA Open Toolkit XSLT-based customization plugin 
which matches this element at publishing time and replaces it with the 
current date. Are you familiar with XSLT? Would you like to pursue 
this direction? If so maybe I can try to sketch a small publishing 
plugin which would do this.



Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 2/13/23 18:36, Frank Dissinger wrote:


Hi list,


How can I insert the current date into a dita file? I would like to 
have oXygen automatically update the year of a copyright notice. I 
know that I can define editor variables. But how can I embed them in 
the dita code?



If this needs to be tied to the XSL that produces the deliverable: I 
need this for CHM, which I generate with oXygen. (I have already 
found a solution for MiramoPDF. ) And I'd need to know where exactly 
to add the code... Thank you.



Regards,

Frank
--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 



___
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

--

*Frank Dissinger*

Documentation Manager



*CGS Publishing Technologies International GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* 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 ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


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

2023-02-14 Thread Frank Dissinger

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:



    
    
    


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  
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 
 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 



*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 ___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user