Search found 5927 matches

by Radu
Fri Jan 18, 2019 4:45 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Set filename and save folder via plugin or framework
Replies: 7
Views: 250

Re: Set filename and save folder via plugin or framework

Hi Andreas, I'm attaching a test code which works on my side: function applicationStarted(pluginWorkspaceAccess) { Packages.java.lang.System.err.println("Application started " + pluginWorkspaceAccess); var edChangedListener = { /*Called when a document is opened*/ /*See: https://www.oxygen...
by Radu
Fri Jan 18, 2019 1:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Set filename and save folder via plugin or framework
Replies: 7
Views: 250

Re: Set filename and save folder via plugin or framework

Hi Andreas, The "saveAs" takes an URL as a parameter: https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/exml/workspace/api/editor/WSEditorBase.html So you may need to rewrite the code to: chosenURL = new Packages.java.net.URL("[some url]"); Regards, Radu
by Radu
Fri Jan 18, 2019 8:51 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Collection of keys not working
Replies: 1
Views: 46

Re: Collection of keys not working

Hi Fredrik,

When you switch to another project, Oxygen re-parses the root map. Maybe you should hover over the "Root Map" combo box, the tooltip presents the path to the DITA Map and maybe in your case the path is to an older version of the DITA Map.

Regards,
Radu
by Radu
Thu Jan 17, 2019 5:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Set filename and save folder via plugin or framework
Replies: 7
Views: 250

Re: Set filename and save folder via plugin or framework

Hi Andreas, Please give me more sample code from your side, especially about how you add the "preSaveListener" listener to the WSEditor using the API "ro.sync.exml.workspace.api.editor.WSEditor.addEditorListener(WSEditorListener)". Tomorrow I can try to create a sample minimal pl...
by Radu
Thu Jan 17, 2019 3:28 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Elements are only converted in FO/PDF output, not HTML
Replies: 22
Views: 1202

Re: Elements are only converted in FO/PDF output, not HTML

Hi Marvin, If I were you, I would identify such a case, identify that topic which contains the missing dl, then try to create a very small DITA project with just that topic, no other outside links, try to publish it. If the problem persists, try to add some xsl:messages in the XSLT template which ma...
by Radu
Thu Jan 17, 2019 12:17 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Copy/Paste event
Replies: 9
Views: 140

Re: Copy/Paste event

Hi Isabelle, So about the remaining problem: - 2) If my TagsDisplayMode is Full_tags and I click on the Text tag directly, even if my code is executed, the copy event only take the Text node and not his parent like I have changed before. I looked in our code and indeed in the case when a node is ful...
by Radu
Wed Jan 16, 2019 4:25 pm
Forum: General XML Questions
Topic: format-date
Replies: 3
Views: 93

Re: format-date

Hi,

You need to do it the hard way using substring-before, substring-after and so on.
I found a stackoverflow post about this:

https://stackoverflow.com/questions/16484193/convert-date-from-dd-mmm-yyyy-to-yyyymmdd-format-in-xslt-1-0

Regards,
Radu
by Radu
Wed Jan 16, 2019 4:03 pm
Forum: General XML Questions
Topic: format-date
Replies: 3
Views: 93

Re: format-date

Hi,

I'm not sure what you mean by "it does not work" but "format-date()" is an XSLT 2.0 function:

https://www.w3.org/TR/xslt20/#function-format-date

so you cannot use it in an XSLT 1.0 stylesheet.

Regards,
Radu
by Radu
Wed Jan 16, 2019 2:16 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Converting HTML files to DITA
Replies: 1
Views: 44

Re: Converting HTML files to DITA

Hi Syed,

There is an add-on for Oxygen XML Editor which can do that:

https://github.com/oxygenxml/oxygen-resources-converter

Conversions are never perfect though.

Regards,
Radu
by Radu
Wed Jan 16, 2019 9:52 am
Forum: SDK-API, Frameworks - Document Types
Topic: Copy/Paste event
Replies: 9
Views: 140

Re: Copy/Paste event

Hi Isabelle, So: I have tried the solution of a PopUpMenuCustomizer but in that specific case I can not add an ActionPerformedListener. This kind of listener is not available for JMenuItem element and I only can improve ActionListener. But it is launched after the action is performed. Once you get a...
by Radu
Wed Jan 16, 2019 8:58 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Simple vanilla DITA structure for if/then business rules?
Replies: 1
Views: 55

Re: Simple vanilla DITA structure for if/then business rules?

Hi, I'm not sure if I understand. If the question is about creating new file templates to be displayed when the Oxygen "File->New" action is invoked, then yes, you can customize the existing DITA templates and you can also share the customization with somebody else: http://blog.oxygenxml.c...
by Radu
Wed Jan 16, 2019 8:56 am
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 1
Views: 34

Re: Right Click Actions

Hi Nat, Sure, from the Javascript code you can call any Java API you want. In the sample project: https://github.com/oxygenxml/wsaccess-javascript-sample-plugins there are 3 plugin folders with names starting with contributePopupAction which may be interesting as examples for you. Regards, Radu
by Radu
Tue Jan 15, 2019 2:32 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: dvrResourceSuffix
Replies: 3
Views: 123

Re: dvrResourceSuffix

Hi Benny,

Somehow I considered that you were using the classic XSL-FO based PDF output.
The args.output.base parameter will start to properly work for CSS-based publishing starting with Oxygen 21 (February 2019).

Regards,
Radu
by Radu
Tue Jan 15, 2019 1:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Copy/Paste event
Replies: 9
Views: 140

Re: Copy/Paste event

Hi Isabelle, There is also a more global API to get access to some actions: ActionsProvider actionsProvider = ((StandalonePluginWorkspace)PluginWorkspaceProvider.getPluginWorkspace()).getActionsProvider(); Map<String, Object> globalActions = actionsProvider.getGlobalActions(); Object copy = globalAc...
by Radu
Tue Jan 15, 2019 11:37 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: fix.external.refs.com.oxygenxml workaround
Replies: 1
Views: 67

Re: fix.external.refs.com.oxygenxml workaround

Hi,

Creating that high-level DITA Map in the WebHelp plugin is kind of too late because there are various ANT parameters which already point to the old DITA Map.
So ideally you would create that new DITA Map with some kind of script before calling the DITA OT processing.

Regards,
Radu
by Radu
Tue Jan 15, 2019 11:36 am
Forum: Other Issues
Topic: rendering of variable instead of values
Replies: 2
Views: 98

Re: rendering of variable instead of values

Hi Ronan, Have you made any changes to the folder ""OXYGEN_INSTALL_DIR/frameworks/dita""? In this case you could try to re-download an archive containing Oxygen 19.1: http://archives.oxygenxml.com/Oxygen/Editor/InstData19.1/All/oxygen.tar.gz and compare using Oxygen's "Compa...
by Radu
Tue Jan 15, 2019 10:37 am
Forum: SDK-API, Frameworks - Document Types
Topic: Dita framework Actions: Activation path misalignment?
Replies: 1
Views: 34

Re: Dita framework Actions: Activation path misalignment?

Hi Bruno, When an XML element is fully selected, the cursor (caret) is outside of that element so the current element is the parent element of the selected element. In order to accommodate for cases like yours we created a special XPath function which returns the current selected element and which c...
by Radu
Mon Jan 14, 2019 10:00 am
Forum: SDK-API, Frameworks - Document Types
Topic: Copy/Paste event
Replies: 9
Views: 140

Re: Copy/Paste event

Hi Isabelle, The "ClipboardFragmentProcessor" is called on the clipboard content, so indeed as you found out it's too late to do something about this after the object has been cloned and copied to the clipboard. Maybe if you add a listener before the "Copy" action is being execut...
by Radu
Mon Jan 14, 2019 9:17 am
Forum: SDK-API, Frameworks - Document Types
Topic: Set filename and save folder via plugin or framework
Replies: 7
Views: 250

Re: Set filename and save folder via plugin or framework

Hi Andreas, How about if on this callback: ro.sync.exml.workspace.api.listeners.WSEditorListener.editorAboutToBeSavedVeto(int) you sometimes return "false" to cancel the save operation and then maybe call: ro.sync.exml.workspace.api.editor.WSEditorBase.saveAs(URL) ? Calling "saveAs&qu...
by Radu
Mon Jan 14, 2019 9:11 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Pasting tables from Word to Oxygen Author: smart paste issue?
Replies: 1
Views: 53

Re: Pasting tables from Word to Oxygen Author: smart paste issue?

Hi Laura, What version of Oxygen are you using? Let's first try on your side to create a small Word document with a single paragraph containing some bold and italic text, copy its contents and paste in a DITA topic. If that works (the Word bold and italic and converted to DITA "b" and &quo...
by Radu
Fri Jan 11, 2019 1:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Finding the node at the caret positoin
Replies: 7
Views: 1597

Re: Finding the node at the caret positoin

Hi Barbara, So you are interested in API for the Text editing mode, right? I did not find any mention that the proposals were implemented. But there is this method: ro.sync.exml.workspace.api.editor.page.text.xml.WSXMLTextEditorPage.getDocumentController() https://www.oxygenxml.com/InstData/Editor/S...
by Radu
Fri Jan 11, 2019 9:44 am
Forum: Common Problems
Topic: Is there a way to scale the images in the pdf
Replies: 3
Views: 151

Re: Is there a way to scale the images in the pdf

Hi, If you are editing the XML document in the Author visual editing mode, click the image then open the "Attributes" view (main menu -> Window->Show View) and set the attributes there. Or use ALT-ENTER to open the in-place attributes editor. Or switch to the "Text" editing mode ...
by Radu
Fri Jan 11, 2019 9:12 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: When do you need to re-import transformation scenarios?
Replies: 3
Views: 95

Re: When do you need to re-import transformation scenarios?

Hi Katelyn, Right, the only (very rare and improbable) instance in which you would need to modify the transformation scenarios would be the case when in the plugin.xml you would rename the "transtype" (format of the transformation) to be some other value because the transformation scenario...
by Radu
Thu Jan 10, 2019 2:18 pm
Forum: Common Problems
Topic: Adding ID to topicref navtitle
Replies: 1
Views: 168

Re: Adding ID to topicref navtitle

Hi Anna,

Sorry for the delay. Right now the @id attribute set on the topicref does not seem to be preserved in the HTML5 output.
Could you tell us more about your use case? What would you use that ID for?

Regards,
Radu
by Radu
Thu Jan 10, 2019 12:31 pm
Forum: SDK-API, Frameworks - Document Types
Topic: add OptionListener to OptionStorage in wsaccess js plugin
Replies: 2
Views: 93

Re: add OptionListener to OptionStorage in wsaccess js plugin

Hi Barbara, Right, the "ro.sync.exml.workspace.api.options.WSOptionListener" abstract class has a constructor which needs to be passed the key as an argument: https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/exml/workspace/api/options/WSOptionListener.html and I also cannot fi...
by Radu
Thu Jan 10, 2019 11:27 am
Forum: Common Problems
Topic: Is there a way to scale the images in the pdf
Replies: 3
Views: 151

Re: Is there a way to scale the images in the pdf

Hi, I don't work much with DocBook anymore but there seems to be some documentation available related to Docbook and images: http://www.sagehill.net/docbookxsl/ImageSizing.html It seems to state something like this: To scale a graphic to fit the available width in printed output, use width="100...
by Radu
Thu Jan 10, 2019 11:24 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: When do you need to re-import transformation scenarios?
Replies: 3
Views: 95

Re: When do you need to re-import transformation scenarios?

Hi, The plugins are imported in oXygen as global transformation scenarios. Plugins are not transformation scenarios. A transformation scenario runs the DITA Open Toolkit publishing engine stating that a certain output type needs to be obtained. A general description of a DITA OT plugin and how it ca...
by Radu
Thu Jan 10, 2019 10:51 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Glossary term referenced with <abbreviated-form> not appearing in PDF
Replies: 7
Views: 333

Re: Glossary term referenced with <abbreviated-form> not appearing in PDF

Hi Rick, The ""DITA OT 3.x publishing engine"" add-on was released along with Oxygen 20.1 so it has the same bugs related as the DITA OT 2.x bundled with Oxygen 20.1. If you contact us via email (support@oxygenxml.com) maybe we can give you early access to the DITA OT 3.x which w...
by Radu
Wed Jan 09, 2019 9:22 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: dvrResourceSuffix
Replies: 3
Views: 123

Re: dvrResourceSuffix

Hi Benny, Maybe you could also ask this question on the DITA Users List as most of the members of the committee which developed the DITA 1.3 standard are registered on it. From what I understand (and also the publishing works this way) the "dvrResourceSuffix" is used and has meaning when p...
by Radu
Tue Jan 08, 2019 10:38 am
Forum: XSLT and FOP
Topic: Section Numbers for PDF
Replies: 4
Views: 1539

Re: Section Numbers for PDF

Hi, This particular forum thread is for generating PDF from DITA. Those parameters "section.label.includes.component.label" that you are trying to set seem to be for DocBook. Are you generating PDF from DocBook content? If so, there is a "docbook-apps" users list on which you cou...

Go to advanced search