Search found 25 matches

by Bruno.Ballarin
Wed Oct 09, 2019 4:24 pm
Forum: SDK-API, Frameworks - Document Types
Topic: commons.js no more visible
Replies: 1
Views: 1302

commons.js no more visible

Hi, following a company stylesheet update many of my topics failed to open in Oxygen Author, with message "cannot load the associated CSS files. The root cause appear to be linked to the absence of the following attributes in the Topic elements of many of my topics: xmlns:ditaarch="http://...
by Bruno.Ballarin
Fri Apr 12, 2019 2:55 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Simultaneous dialogs with ExecuteMultipleActionsOperation
Replies: 1
Views: 1514

Simultaneous dialogs with ExecuteMultipleActionsOperation

Hi, In order to allow in one single toolbar command to create a xref and then to edit the outputclass attribute, I use a ExecuteMultipleActionsOperation with actionIDs: xref.insert, xref.type. The xref.insert calls an Action built with the InsertXrefOperation (that includes a built-in dialog to sele...
by Bruno.Ballarin
Thu Mar 14, 2019 11:15 am
Forum: SDK-API, Frameworks - Document Types
Topic: Run JSOperation on multiple topics
Replies: 5
Views: 2586

Re: Run JSOperation on multiple topics

Oh that's it! Thank you very much to you both :D .

I lost the habit to put the true() when no particular activation Xpath was needed because I did not see the difference :? .

Cheers,

Bruno
by Bruno.Ballarin
Wed Mar 13, 2019 1:57 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Run JSOperation on multiple topics
Replies: 5
Views: 2586

Re: Run JSOperation on multiple topics

Thanks Radu, seems promising, I have been able to install the performAuthorActionOnProjectResources plugin and to edit the config.xml file in order to point to my own Dita Author action ID. I built a project where I added the batch of Dita xml topics I need to be processed. In the project window I s...
by Bruno.Ballarin
Mon Mar 11, 2019 12:47 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Run JSOperation on multiple topics
Replies: 5
Views: 2586

Run JSOperation on multiple topics

Hi, I am seeking guidance as per which direction to go for running a JSOperation to multiple topics at a time, without having to select each topic one after the other and click my JSOperation action button for each one. Should I think into creating a transformation scenario? Can I call a JSOperation...
by Bruno.Ballarin
Fri Mar 01, 2019 12:33 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Join subset of (row) cells collected with a findNodesByXPath
Replies: 2
Views: 1819

Re: Join subset of (row) cells collected with a findNodesByXPath

Thank you Radu. Moving the JSOperation functions defined in the Author actions to an [OXYGEN_INSTALL_DIR]/frameworks/dita/commons.js library helps a lot for fast and convenient editing/debugging :-). As per the merge of consecutive cells on a single table row, since the cells themselves are built by...
by Bruno.Ballarin
Wed Feb 27, 2019 8:59 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Join subset of (row) cells collected with a findNodesByXPath
Replies: 2
Views: 1819

Join subset of (row) cells collected with a findNodesByXPath

Hi, (environment: Dita Framework customization, Oxygen Author 19.1) I am trying to find a method within a doOperation that would join a subset of adjacent table cells belonging to the same row. The subset of cells could be the result of a authorAccess.getDocumentController().findNodesByXPath() opera...
by Bruno.Ballarin
Tue Jan 15, 2019 10:21 am
Forum: SDK-API, Frameworks - Document Types
Topic: Dita framework Actions: Activation path misalignment?
Replies: 1
Views: 1399

Dita framework Actions: Activation path misalignment?

Hi, in various situations it seems there is a misalignment between: the element type selected at the caret (and indicated on the top left of the Author view, see ref highlight below) and the element type detected by the Activation XPpath of a custom Action For instance in both examples below, with o...
by Bruno.Ballarin
Mon Dec 17, 2018 7:42 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Getting the currently applied profiling configuration programatically for use in Author Actions
Replies: 2
Views: 2015

Re: Getting the currently applied profiling configuration programatically for use in Author Actions

Perfect, thank you. InRow = authorAccess.getDocumentController().findNodesByXPath("/topic/abstract/table/tgroup/tbody/row", true, true, true); for(i = 0; i < InRow.length; i++){ if (!authorAccess.getEditorAccess().getStyles(InRow[i]).isFilteredOut()) { // my processing here (applied to onl...
by Bruno.Ballarin
Fri Dec 14, 2018 11:19 am
Forum: SDK-API, Frameworks - Document Types
Topic: Getting the currently applied profiling configuration programatically for use in Author Actions
Replies: 2
Views: 2015

Getting the currently applied profiling configuration programatically for use in Author Actions

Hi, when executing some Dita custom Author actions on a currently opened dita topic, is there a way to retrieve programmatically the profiling scheme that is currently applied on the opened Dita topic? The rationale: When selecting a pool of elements with an xpath to perform a custom operation, it s...
by Bruno.Ballarin
Mon Dec 10, 2018 12:25 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Source code for PromoteDemoteItemOperation
Replies: 5
Views: 2915

Re: Source code for PromoteDemoteItemOperation

Thank you Radu, I got it to work now: Set/clear Attribute rotate = "1" on: an arbitrary selection of cells (including multiple cells belonging to multiple rows) a single cell at cursor position function doOperation() { if(authorAccess.getEditorAccess().hasSelection()) { offsetList = author...
by Bruno.Ballarin
Wed Dec 05, 2018 3:59 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Source code for PromoteDemoteItemOperation
Replies: 5
Views: 2915

Re: Source code for PromoteDemoteItemOperation

Thank you Radu, with your help, I have been able to put together the JSOperation (provided below) that does the following: After selecting a range of cells in a table row, or an entire row: If any cell in the selection has attribute rotate = "...", the attribute "rotate" is remov...
by Bruno.Ballarin
Wed Dec 05, 2018 11:57 am
Forum: SDK-API, Frameworks - Document Types
Topic: Source code for PromoteDemoteItemOperation
Replies: 5
Views: 2915

Source code for PromoteDemoteItemOperation

Hi, I could not find the source code for the recently introduced PromoteDemoteItemOperation. I am interested in finding an javascript example showing how to select a subset of similar elements either partially or totally included in the current selection at the caret position. For instance if I make...
by Bruno.Ballarin
Mon Oct 15, 2018 8:45 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: workaround to CSS @counter-style
Replies: 3
Views: 1778

Re: workaround to CSS @counter-style

Thank you very much Radu.

It does precisely what I was looking for :-).

Cheers,

Bruno
by Bruno.Ballarin
Fri Oct 12, 2018 1:21 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: workaround to CSS @counter-style
Replies: 3
Views: 1778

workaround to CSS @counter-style

I am under the impression that the rule @counter-style is not supported (yet?) in dita framework CSSs. I understand this rule would allow (when supported) to modify the rendering of a counter from the default numeric suite 0 1 2 ... to (for instance) a literal suite A B C. Would there be a workaroun...
by Bruno.Ballarin
Fri Oct 05, 2018 4:01 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: oxy_link-text() not resolving on xrefs targeting fn element?
Replies: 6
Views: 3360

Re: oxy_link-text() not resolving on xrefs targeting fn element?

Thanks Alex, the below fragment does the trick of displaying the xref target (<fn>) text. content: "(" oxy_xpath(oxy_concat('doc(resolve-uri(substring-before(@href, "#")))//fn[@id="', oxy_substring(attr(href), oxy_add(oxy_indexof(attr(href), '/'), 1, 'integer')), '"]/te...
by Bruno.Ballarin
Mon Oct 01, 2018 12:08 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: oxy_link-text() not resolving on xrefs targeting fn element?
Replies: 6
Views: 3360

Re: oxy_link-text() not resolving on xrefs targeting fn element?

Thank you very much Alex for your reply. Yes I am interested in going further into finding a solution to this issue: We often have multiple fn within a same table, each fn being targeted by multiple xrefs (also disseminated within the same table). When in author mode, I would like to have by default...
by Bruno.Ballarin
Fri Sep 28, 2018 1:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: oxy_link-text() not resolving on xrefs targeting fn element?
Replies: 6
Views: 3360

oxy_link-text() not resolving on xrefs targeting fn element?

It seems the oxy_link-text() function does not resolve when targeted at a <fn/> element (whereas I got it to work with all other type of xref targets while customizing my CSS). The CSS fragment: /* fn xref */ *[class ~= "topic/link"][href *= "/fn"]:before, *[class ~= "topic/...
by Bruno.Ballarin
Fri Aug 10, 2018 6:23 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA framework customization: combining insertFragment + GenerateIDs
Replies: 2
Views: 1658

Re: DITA framework customization: combining insertFragment + GenerateIDs

option 2, using ExecuteMultipleActionsOperation, solved my problem.

Thank you very much Sorin :)
by Bruno.Ballarin
Fri Aug 10, 2018 3:36 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA framework customization: combining insertFragment + GenerateIDs
Replies: 2
Views: 1658

DITA framework customization: combining insertFragment + GenerateIDs

Hi, I am trying to combine 2 operations into a single custom action button within DITA framework: 1rst operation: https://i37.servimg.com/u/f37/15/44/56/21/untitl13.png 2nd operation: https://i37.servimg.com/u/f37/15/44/56/21/untitl12.png for some reason the 2nd operation does not seam to work, the ...
by Bruno.Ballarin
Wed Oct 22, 2014 10:55 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customize insertimage macro
Replies: 5
Views: 3590

Re: Customize insertimage macro

Hi Radu, solution 2 without writing java code is working perfectly for me. I customized it by replacing most of the prompts by constants (our documentation formalism imposes for instance the presence of a figure frame, 14.25cm width image, etc. So in the end, the end user is only asked for the title...
by Bruno.Ballarin
Wed Oct 15, 2014 7:54 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customize insertimage macro
Replies: 5
Views: 3590

Customize insertimage macro

Using DITA framework, I have started creating custom actions and brought them into the toolbar with some buttons. Right now I would appreciate to get help to customize the ${i18n(insert.image)} default Action so that it "format" the image in addition to just bringing it. in other words I w...
by Bruno.Ballarin
Thu Aug 07, 2014 4:59 pm
Forum: Other Issues
Topic: .emf image support in Oxygen xml Author
Replies: 6
Views: 3824

Re: .emf image support in Oxygen xml Author

Hi Radu, I use Dita XML and our publishing engine is external (Dita exchange word Publisher with custom stylesheet). I tried the publishing flow with an .emf file in the xml (instead of an .svg) and it is working, despite Oxygen xml Author does not render the figure in the author view. So I could wo...
by Bruno.Ballarin
Thu Aug 07, 2014 4:19 pm
Forum: Other Issues
Topic: .emf image support in Oxygen xml Author
Replies: 6
Views: 3824

.emf image support in Oxygen xml Author

Hello, I have the constraint to design my figures with Visio (company requirement) and my xml output process requires images in .emf format. As far as I see Oxygen xml Author does not render any of these 2 formats .vsd nor .emf. So far my workaround consists in saving my figures in a third format: ....