Re: [oXygen-user] Custom action to generate simple dialog?
If you're interested, here's one way to do this. I'm sure there's a more elegant way and this is probably a bit if a hack, but it does what I need right now. 1. In. your framework's Document Type dialog, on the Author:Actions subtab, add an action to the framework, give it an ID and a Name. 2. In the Action dialog select this Operation: ro.sync.ecss.extensions.commons.operations.JSOperation 3. A 'script' argument will be added, leave the value empty. 4. Choose OK. (Leave the Document Type dialog up for now.) 5. Create a commons.js file in the root of your framework directory, with the following content .. function doOperation(){ parentFrame = authorAccess.getParentFrame(); javax.swing.JOptionPane.showMessageDialog(parentFrame, "MESSAGE HERE"); } 6. In the Document Type dialog, on the Author:Menu subtab, add your new action to your menu (assuming one exists). 7. Choose OK, then OK. Open a document in Author view that uses your framework. You should see the new menu item. Clearly, if you're already using the commons.js file for something else, you'll need to pass in some parameter and tweak the JS code .. but this is a start. :-) Cheers, Scott On 6/12/24 1:32 PM, Scott Prentice wrote: Hi, Is there a built-in method for creating an action (to call from a toolbar or menu) that displays a simple dialog that contains informational text? I'd like to have an "About" dialog that's associated with a framework. I assume I can do this by creating a custom class, but wanted to see if there was an OOB option for this. Thanks! Scott ___ 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] Custom action to generate simple dialog?
Hi, Is there a built-in method for creating an action (to call from a toolbar or menu) that displays a simple dialog that contains informational text? I'd like to have an "About" dialog that's associated with a framework. I assume I can do this by creating a custom class, but wanted to see if there was an OOB option for this. Thanks! Scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] [OXYGEN-14072] Add custom catalog to OT build
Thanks, Radu. Yes, I had seen those github discussions, and had hoped that maybe something had been implemented. Seems like a reasonable feature. We're trying to use the com.oxygenxml.pdf.css plugin, which I assume requires special licensing if used outside of the default install .. ? Will look into the options. Regards, ...scott On 3/26/24 10:01 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hi Scott, As you seem to have a custom DITA OT installation inside your custom framework, why don't you also use it as a default engine for publishing in the Oxygen Preferences->DITA page? Other than that, the DITA OT needs to have a plugin containing extra catalogs (or as a hack you need to manually make changes to the "catalog-dita.xml" inside the DITA OT). There is no possibility to enforce an extra set of XML catalogs from the exterior when starting the DITA OT. At some point I wished there was such a way: https://github.com/dita-ot/dita-ot/issues/1515 Also Jarno Elovirta experimented at some point with a way to install plugins in the DITA OT without the need to change any files in the DITA OT folder itself, this pull request was abandoned though: https://github.com/dita-ot/dita-ot/pull/3152 Regards, Radu Radu Coravu Oxygen XML Editor On 3/27/24 02:08, Scott Prentice wrote: I've got a custom framework that includes an OT installation that provides our custom doctype files and custom plugins. Editing topics that use this custom doctype is handled without problems, and using transformation scenarios that are supported by the embedded OT also works fine. But, I'd like to use an OT target that lives in the default Oxygen OT installation. My Oxygen DITA settings still point to the "built-in" OT, so when I set up a transformation scenario for the Oxygen OT target, it starts to work, but fails when it can't find the custom DTD. When I add a pointer from [OXYGEN]/org.dita.base/catalog-dita.xml that references my custom catalog, the build completes fine. BUT .. I don't want to modify the default Oxygen installation files. Some thoughts .. - I don't think there's a param that I can add to the transformation scenario to reference my custom catalog .. is there? - I've tried adding my catalog in Settings > XML > XML Catalog .. but that didn't seem to have any affect. Is there any way to add a custom catalog without editing the default Oxygen files? Currently using Oxygen 25.1. Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] Add custom catalog to OT build
I've got a custom framework that includes an OT installation that provides our custom doctype files and custom plugins. Editing topics that use this custom doctype is handled without problems, and using transformation scenarios that are supported by the embedded OT also works fine. But, I'd like to use an OT target that lives in the default Oxygen OT installation. My Oxygen DITA settings still point to the "built-in" OT, so when I set up a transformation scenario for the Oxygen OT target, it starts to work, but fails when it can't find the custom DTD. When I add a pointer from [OXYGEN]/org.dita.base/catalog-dita.xml that references my custom catalog, the build completes fine. BUT .. I don't want to modify the default Oxygen installation files. Some thoughts .. - I don't think there's a param that I can add to the transformation scenario to reference my custom catalog .. is there? - I've tried adding my catalog in Settings > XML > XML Catalog .. but that didn't seem to have any affect. Is there any way to add a custom catalog without editing the default Oxygen files? Currently using Oxygen 25.1. Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] [OXYGEN-10249] ANT transformation scenarios .. ?
Thanks, Radu! On 11/7/23 10:14 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hello Scott, I think this is a bug which I fixed in our code about a month or two ago, Oxygen 26 should no longer have this bug so you can give it a try. Probably we'll also release an Oxygen 25.1 minor bug fix release containing this bug fix and a couple of other bug fixes as well in a couple of weeks. Regards, Radu Radu Coravu Oxygen XML Editor On 11/7/23 21:23, Scott Prentice wrote: Hi... In O23 (maybe O24) and earlier, there was the ability to add ANT transformation scenarios to a framework .. but in O25, that doesn't seem to work. Am I missing some switch or setting to enable this? If I open a framework in O25 that was created in O23, I can edit existing ANT scenarios, but just can't add them. Settings > Document Type Associations > [select/edit framework] > Transformation tab .. - Use "+" button at bottom and select "ANT transformation" I get nada. Is anyone else seeing this? Same for O25.0 and O25.1 .. haven't tested O26 yet. Is it just me or are others seeing this? Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] ANT transformation scenarios .. ?
Hi... In O23 (maybe O24) and earlier, there was the ability to add ANT transformation scenarios to a framework .. but in O25, that doesn't seem to work. Am I missing some switch or setting to enable this? If I open a framework in O25 that was created in O23, I can edit existing ANT scenarios, but just can't add them. Settings > Document Type Associations > [select/edit framework] > Transformation tab .. - Use "+" button at bottom and select "ANT transformation" I get nada. Is anyone else seeing this? Same for O25.0 and O25.1 .. haven't tested O26 yet. Is it just me or are others seeing this? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] [OXYGEN-9493] Load external data into form control?
Thanks, Radu! That looks like an interesting solution .. will give it a whirl. ...scott On 10/18/23 8:33 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hi Scott, If you just configure using the CSS a combo box to edit the values of an attribute, by default those values will be gathered either from the DTDs (if you have defined a choice of values for the attribute in the DTDs) or from our content completion configuration file which can use XSLT to gather values from another location. Maybe this blog post by my colleague Alex will help: https://blog.oxygenxml.com/topics/controlledAttributeValues2.html Regards, Radu Radu Coravu Oxygen XML Editor On 10/19/23 03:06, Scott Prentice wrote: I'm refining some metadata form controls for a custom framework, and it would be ideal if I was able to load the values and labels for a combobox from an external file (XML or preferably, JSON) rather than hard-coding these values into the CSS. It seems that this may be possible with xpath_eval(). Is anyone aware of any examples of this, or am I heading down a rabbit hole? I'll keep poking at this, but thought I'd see if anyone had thoughts on this effort. Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] Load external data into form control?
I'm refining some metadata form controls for a custom framework, and it would be ideal if I was able to load the values and labels for a combobox from an external file (XML or preferably, JSON) rather than hard-coding these values into the CSS. It seems that this may be possible with xpath_eval(). Is anyone aware of any examples of this, or am I heading down a rabbit hole? I'll keep poking at this, but thought I'd see if anyone had thoughts on this effort. Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] [OXYGEN-9425] Association Rules in frameworks
Thanks, Radu! That's sorta what I was assuming, but wanted to make sue there wasn't some special reason that entry was needed for "all" DITA-based frameworks. Yes, after removing the "DITATopicCustomRuleMatcher" java class entry, the matching seems to work as expected. Nice. Simple is good. :-) And, regarding he gremlin behavior .. so far I'm not seeing anything unexpected. Perhaps I was being careless at the end of the day .. hard to believe, I know. Fingers crossed. All the best, Scott On 10/17/23 11:19 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hi Scott, The "DITATopicCustomRuleMatcher" java class is where the magic happens :) It's quite hard to identify a DITA topic or map, it could use the base public IDs or it could refer to specialization DTDs, it could have various root element names, but the "DITATopicCustomRuleMatcher" Java class looks at various default attributes specified in the DTD like the "ditaarch:DITAArchVersion" attribute to decide if an opened XML document is actually a DITA topic or map. https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/dita/topic/DITATopicCustomRuleMatcher.html#matches(java.lang.String,java.lang.String,java.lang.String,java.lang.String,org.xml.sax.Attributes) So with this extra rule added at the end of all other rules, our base "DITA" and "DITA Map" frameworks will be applied on any kind of specialized DITA XML topic or map, without the end user having to create a special DITA framework extension to match their type of documents. But once people start to create DITA framework extensions (like you do) for special DTD public ID, this extra rule placed at the end would no longer be necessary to you because you know that your topics and maps refer to specific DTDs. So I think it's correct that you are only using some very specific association rules in your DITA framework customization which no longer include our "DITATopicCustomRuleMatcher" class. About this behavior: but I think I'm seeing that after I remove all but the necessary rules from a particular framework, after some time, additional rules are added. When I close and save the framework, sometime later I go back and there are rules that match on Root Local Name .. concept, task, reference, etc. .. I'd swear I didn't add those. Do I have gremlins, or is this a feature? This would be a bug, but we would need some way to consistently reproduce it. Regards, Radu Radu Coravu Oxygen XML Editor On 10/18/23 01:54, Scott Prentice wrote: I've got two different DITA models that are similar, and each may be edited at the same time in Oxygen. Their DTDs are different and use different Public IDs. I'm developing a framework for each which applies slightly different schematron validation and CSS styling. It's my understanding that I should be able to target each model using the Association Rules, and in general this seems to work fine. Since I'm trying to be very specific about which documents are to use each framework, I thought I'd keep the Association Rules to a minimum, basically just the specific Public IDs. It's my understanding that if a document matches any one of these rules, the framework will be applied .. so no need to include extra match rules .. right? One association rule that I see on many DITA frameworks is a Java Class rule of .. ro.sync.ecss.extensions.dita.topic.DITATopicCustomRuleMatcher Can someone tell me what this does and is it needed in all cases? Also .. and I may be mistaken .. but I think I'm seeing that after I remove all but the necessary rules from a particular framework, after some time, additional rules are added. When I close and save the framework, sometime later I go back and there are rules that match on Root Local Name .. concept, task, reference, etc. .. I'd swear I didn't add those. Do I have gremlins, or is this a feature? Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] Association Rules in frameworks
I've got two different DITA models that are similar, and each may be edited at the same time in Oxygen. Their DTDs are different and use different Public IDs. I'm developing a framework for each which applies slightly different schematron validation and CSS styling. It's my understanding that I should be able to target each model using the Association Rules, and in general this seems to work fine. Since I'm trying to be very specific about which documents are to use each framework, I thought I'd keep the Association Rules to a minimum, basically just the specific Public IDs. It's my understanding that if a document matches any one of these rules, the framework will be applied .. so no need to include extra match rules .. right? One association rule that I see on many DITA frameworks is a Java Class rule of .. ro.sync.ecss.extensions.dita.topic.DITATopicCustomRuleMatcher Can someone tell me what this does and is it needed in all cases? Also .. and I may be mistaken .. but I think I'm seeing that after I remove all but the necessary rules from a particular framework, after some time, additional rules are added. When I close and save the framework, sometime later I go back and there are rules that match on Root Local Name .. concept, task, reference, etc. .. I'd swear I didn't add those. Do I have gremlins, or is this a feature? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] Git addon on M1 Mac?
Thanks, Franz-Josef. I was asking for colleagues. Hoping they can get to the bottom of it. Sounds like it's a "local" issue and not a general M1 chip problem. Cheers, ...scott On 1/10/23 12:27 AM, Franz-Josef Knelangen wrote: Hi Scott, the Git addon works fine on my MB Air M1 2020 with Oxy25. – The MB still runs on Monterey (12.6.2). I had the addon working on Oxy24 and updated both Oxy and the addon, if that matters. Greetings, Franz-Josef *AKG Software Consulting GmbH Franz-Josef Knelangen* Uhlandstraße 12 79423 Heitersheim Germany Tel.: +49 (0)7634 5612-611 Fax: +49 (0)7634 5612-300 E-Mail: _fjk@akgsoftware.de_ Internet: www.akgsoftware.de <http://www.akgsoftware.de> Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg) *From:*oXygen-user *On Behalf Of *Scott Prentice *Sent:* Dienstag, 10. Januar 2023 03:00 *To:* oxygen-user@oxygenxml.com *Subject:* [oXygen-user] Git addon on M1 Mac? Externe E-Mail: Vorsicht beim Öffnen von Anhängen und Klicken auf Links! Hi... I'm seeing that when you install the Git addon, on Oxygen 25 installed on an M1 Mac, when you restart Oxygen, it generates an error and can't start the editor. This has been verified on two different systems. It works fine on a non-M1 Mac. Is anyone else seeing this? Oxygen .. is this something you're aware of? Thanks! ...scott ___ 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
Re: [oXygen-user] Git addon on M1 Mac?
Hi Radu, This is actually an error on my colleagues' systems (three people now) .. I don't have an M1 Mac so don't see the problem. The error prevents Oxygen from running so they can't use the "Report problem" menu item. It sounds like they have reached out to your support channel directly, so this may be duplicating efforts, but just in case, I'll write to "support" off-list and include the Java error they are getting and CC one of the people involved, so they can discuss directly with your team. Thanks! ...scott On 1/9/23 9:09 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hello Scott, I'm using Oxygen 25 with the Git add-on on an M1 Mac every day and I don't seem to have any issues with it. Can you maybe send us some details about the error? Maybe a screenshot? In addition you can also use the Oxygen main menu "Help->Report problem" and report a problem to us, we will receive lots of details about your current Oxygen installation, this might help us debug the problem further. Regards, Radu Radu Coravu Oxygen XML Editor On 1/10/23 04:00, Scott Prentice wrote: Hi... I'm seeing that when you install the Git addon, on Oxygen 25 installed on an M1 Mac, when you restart Oxygen, it generates an error and can't start the editor. This has been verified on two different systems. It works fine on a non-M1 Mac. Is anyone else seeing this? Oxygen .. is this something you're aware of? Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] Git addon on M1 Mac?
Hi... I'm seeing that when you install the Git addon, on Oxygen 25 installed on an M1 Mac, when you restart Oxygen, it generates an error and can't start the editor. This has been verified on two different systems. It works fine on a non-M1 Mac. Is anyone else seeing this? Oxygen .. is this something you're aware of? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] Custom DTDs with default Oxygen OT
Thanks, Radu! Yes, I think we don't want to go down the route of modifying the default OT, we do have users on Windows and we want to make things as seamless as possible, with fewer possible ways for things to go sideways. Option #2 looks most likely. All the best! ...scott On 12/20/22 9:21 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hi Scott, If you would only wanted your DTD specialization to be used by Oxygen when editing or for validation, adding a reference to the custom XML catalog in the Oxygen Preferences->"XML / XML Catalog" page would be enough. But indeed for publishing the DITA OT publishing engine needs to have an extra plugin installed, there are no parameters which would allow passing a reference to an extra XML catalog to the DITA OT when it starts. https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dita-integrate-specialization.html You could actually keep a separate "plugins" folder outside of the DITA OT main folder as long as you refer to it in the "DITA-OT3.x/config/configuration.properties" file: https://www.dita-ot.org/dev/parameters/configuration-properties-file.html But this would still mean the DITA OT folder would need to be changed, changes made to the "configuration.properties" followed by running the DITA OT integrator task which adds an extra reference to your XML catalog from the main DITA OT XML catalog. And the main problem is that on Windows, Oxygen is usually installed in the "Program Files" folder which is read-only and making changes to files there is problematic if you do not have admin privileges. Some more ways to distribute a custom DITA OT to the users: 1) Make the custom DITA OT available as an add-on: https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/contribute-external-dita-ot-extension.html For example here: https://github.com/oxygenxml/dita-ot-3x-plugin In the Oxygen main menu "Help->Install new add-ons" you can point Oxygen to an HTTP location containing the zipped DITA OT and Oxygen would download it and make it available in the "Preferences->DITA" page. 2) Add the custom DITA OT folder directly inside the framework folder. an Oxygen framework can provide also custom transformation scenarios and the custom transformation scenarios could use the "Parameters->"dita.dir"" parameter to refer to the custom DITA OT bundled with the framework. 3) If you use a Git repository for example you could also commit the custom DITA OT inside the repository so that everyone gets it when they check out the project. Regards, Radu Radu Coravu Oxygen XML Editor On 12/20/22 22:19, Scott Prentice wrote: It's interesting to see that Chemistry apparently honors the catalog defined in the framework, so you can do a PDF build from content using a custom doctype with just the framework installed. Not exactly what I need, but good to know! ...scott On 12/20/22 11:46 AM, Scott Prentice wrote: Thanks, Stefan! Yeah .. I was hoping to avoid having the users install a plugin .. just install the framework. But I can see that's not going to fly. I'm thinking that the simplest (least effort for the users, and least opportunity for error), is to provide a pre-configured OT installation that they can point to from Preferences. It'll just be .. 1) Install framework, 2) Point to custom OT in Preferences That way if something goes sideways, they haven't messed with the detail Oxygen installation. Cheers, ...scott On 12/20/22 11:33 AM, Stefan Jung wrote: Hey Scott, You should bundle the grammar files in a toolkit plugin. This is correct. In your oxygen framework you need to configure the matching rules to recognize your custom grammar files. You need to install your plugin to the DITA-OT as well. You need to use the dita.specialization.catalog.relative extension point in your plugin.xml. BR Gesendet mit OX Mail Scott Prentice http://s...@leximation.com>> hat am December 20, 2022 um 8:25 PM geschrieben: I think I know the answer to this question, but want to confirm that I'm not missing something. I've got a set of custom DITA DTDs wrapped up in an OT plugin. If I install this plugin in the OT, I'm able to successfully generate output from content that uses the public IDs defined by those DTDs. However, what I'd like is to include this plugin in an Oxygen framework, and have the custom doctypes honored for OT builds without "installing" the plugin. As it stands, users can install the framework and edit topics and maps using the custom doctypes. It validates fine and all is well, but when they go to do an OT build, it fails to recognize the location for the custom DTDs. I thought there was an OT parameter that let you specify the location of an alternate catalog file, but I'm not seeing that.
Re: [oXygen-user] Custom DTDs with default Oxygen OT
It's interesting to see that Chemistry apparently honors the catalog defined in the framework, so you can do a PDF build from content using a custom doctype with just the framework installed. Not exactly what I need, but good to know! ...scott On 12/20/22 11:46 AM, Scott Prentice wrote: Thanks, Stefan! Yeah .. I was hoping to avoid having the users install a plugin .. just install the framework. But I can see that's not going to fly. I'm thinking that the simplest (least effort for the users, and least opportunity for error), is to provide a pre-configured OT installation that they can point to from Preferences. It'll just be .. 1) Install framework, 2) Point to custom OT in Preferences That way if something goes sideways, they haven't messed with the detail Oxygen installation. Cheers, ...scott On 12/20/22 11:33 AM, Stefan Jung wrote: Hey Scott, You should bundle the grammar files in a toolkit plugin. This is correct. In your oxygen framework you need to configure the matching rules to recognize your custom grammar files. You need to install your plugin to the DITA-OT as well. You need to use the dita.specialization.catalog.relative extension point in your plugin.xml. BR Gesendet mit OX Mail Scott Prentice http://s...@leximation.com>> hat am December 20, 2022 um 8:25 PM geschrieben: I think I know the answer to this question, but want to confirm that I'm not missing something. I've got a set of custom DITA DTDs wrapped up in an OT plugin. If I install this plugin in the OT, I'm able to successfully generate output from content that uses the public IDs defined by those DTDs. However, what I'd like is to include this plugin in an Oxygen framework, and have the custom doctypes honored for OT builds without "installing" the plugin. As it stands, users can install the framework and edit topics and maps using the custom doctypes. It validates fine and all is well, but when they go to do an OT build, it fails to recognize the location for the custom DTDs. I thought there was an OT parameter that let you specify the location of an alternate catalog file, but I'm not seeing that. Was hoping that I could get this to work by just having the users install the framework. It seems like my only options are (after installing the framework) .. - install and integrate the "doctypes" plugin into the default OT in Oxygen - OR .. provide another OT that has the doctypes plugin installed and have the users point to that as a custom DITA-OT in Oxygen Thoughts? Thanks! ...scott ___ 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
Re: [oXygen-user] Custom DTDs with default Oxygen OT
Thanks, Stefan! Yeah .. I was hoping to avoid having the users install a plugin .. just install the framework. But I can see that's not going to fly. I'm thinking that the simplest (least effort for the users, and least opportunity for error), is to provide a pre-configured OT installation that they can point to from Preferences. It'll just be .. 1) Install framework, 2) Point to custom OT in Preferences That way if something goes sideways, they haven't messed with the detail Oxygen installation. Cheers, ...scott On 12/20/22 11:33 AM, Stefan Jung wrote: Hey Scott, You should bundle the grammar files in a toolkit plugin. This is correct. In your oxygen framework you need to configure the matching rules to recognize your custom grammar files. You need to install your plugin to the DITA-OT as well. You need to use the dita.specialization.catalog.relative extension point in your plugin.xml. BR Gesendet mit OX Mail Scott Prentice http://s...@leximation.com>> hat am December 20, 2022 um 8:25 PM geschrieben: I think I know the answer to this question, but want to confirm that I'm not missing something. I've got a set of custom DITA DTDs wrapped up in an OT plugin. If I install this plugin in the OT, I'm able to successfully generate output from content that uses the public IDs defined by those DTDs. However, what I'd like is to include this plugin in an Oxygen framework, and have the custom doctypes honored for OT builds without "installing" the plugin. As it stands, users can install the framework and edit topics and maps using the custom doctypes. It validates fine and all is well, but when they go to do an OT build, it fails to recognize the location for the custom DTDs. I thought there was an OT parameter that let you specify the location of an alternate catalog file, but I'm not seeing that. Was hoping that I could get this to work by just having the users install the framework. It seems like my only options are (after installing the framework) .. - install and integrate the "doctypes" plugin into the default OT in Oxygen - OR .. provide another OT that has the doctypes plugin installed and have the users point to that as a custom DITA-OT in Oxygen Thoughts? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] Custom DTDs with default Oxygen OT
I think I know the answer to this question, but want to confirm that I'm not missing something. I've got a set of custom DITA DTDs wrapped up in an OT plugin. If I install this plugin in the OT, I'm able to successfully generate output from content that uses the public IDs defined by those DTDs. However, what I'd like is to include this plugin in an Oxygen framework, and have the custom doctypes honored for OT builds without "installing" the plugin. As it stands, users can install the framework and edit topics and maps using the custom doctypes. It validates fine and all is well, but when they go to do an OT build, it fails to recognize the location for the custom DTDs. I thought there was an OT parameter that let you specify the location of an alternate catalog file, but I'm not seeing that. Was hoping that I could get this to work by just having the users install the framework. It seems like my only options are (after installing the framework) .. - install and integrate the "doctypes" plugin into the default OT in Oxygen - OR .. provide another OT that has the doctypes plugin installed and have the users point to that as a custom DITA-OT in Oxygen Thoughts? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] oxy_eval?
Thanks, Alex! That sounds promising .. I'll give it a try. Cheers, ...scott On 11/8/22 12:17 AM, Alex Jitianu wrote: Hi, There is an /oxy_xpath()/ [1] function available that can execute XPath, but I'm not sure how it would help in this scenario. What comes to mind is the /onChange/ property on the combo box form control because it's value can be another action invoke when the combo commits a value. For example, you can invoke an XQuery update script [3] which can inspect the document to see what value was committed and can afterwards alter the document accordingly. comboBox:before { *content*:"A combo box that edits an attribute value. The possible values are provided from CSS:" oxy_combobox( edit,"@attribute", editable, false, values,"value1, value2, value3", labels,"Value no1, Value no2, Value no3", onChange, oxy_action( name,'Insert', operation,'XQueryUpdateOperation', arg-script,'insert node {xs:string(@attribute)} as last into .')); [1] https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-xpath-function.html [2] https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/combo-box-editor.html#combo-box-editor__li_rrd_dgk_54b [3] https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__xqueryupdateoperation Best regards, Alex -- Alex Jitianu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 11/8/2022 2:06 AM, Scott Prentice wrote: Just wondering if there's an "eval" custom CSS function .. ? I've got an oxy_combobox that lists a number of attributes, and would like to be able to test the selected value. If a certain attribute was selected, I want to set another attribute on the same element. I know I can do this by writing some Java code, but wanted to make sure I wasn't missing something obvious with the custom CSS functions. Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] oxy_eval?
Just wondering if there's an "eval" custom CSS function .. ? I've got an oxy_combobox that lists a number of attributes, and would like to be able to test the selected value. If a certain attribute was selected, I want to set another attribute on the same element. I know I can do this by writing some Java code, but wanted to make sure I wasn't missing something obvious with the custom CSS functions. Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] Oxygen/Perforce connector?
Thanks, Adrian and George! It's good to know that this is *possibly* on your radar. While probably not as popular as Git, I'd imagine that there would be many companies who would make use of a plugin for Perforce. Our use is not an immediate need, so .. maybe it'll become a reality .. ? I have seen that they could use Oxygen in Eclipse and use the Eclipse connector to Perforce .. but that adds another layer and they are already set up with standalone Oxygen. Not an ideal solution, but possible. All the best! ...scott On 10/26/22 1:08 AM, George Bina wrote: Hi Scott, Please note that we also provide an Eclipse plugin distribution https://www.oxygenxml.com/xml_editor/download_oxygenxml_editor.html?os=Eclipse and there are many other Eclipse plugins available, including a Perforce plugin, see for example: https://www.perforce.com/plugins-integrations/eclipse-plugin So, you may use Oxygen and Perforce together within the Eclipse environment. Best Regards, George -- George Cristian Bina XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 10/26/22 10:16 AM, Oxygen XML Editor Support (Adrian Buza) wrote: Hello Scott, For Oxygen XML Editor/Author/Developer currently there is no Perforce plugin, like there is for Git. If there are other third party integrations with Perforce, we're not aware of them. We do have a feature request logged for this on our issue tracking system. I've added your vote. Regards, Adrian Adrian Buza oXygen XML Editor and Author Support On 25.10.2022 03:52, Scott Prentice wrote: I have a client who is interested in using Oxygen with a Perforce repo. The only plugin/connector with Perforce I'm seeing is for Web Author .. am I missing something? Has anyone put together any sort of integration with Oxygen XML Editor and Perforce? This doesn't seem like an unreasonable expectation. Yes, Git is nice, but if your company has an existing Perforce installation, it's hard to get them to switch. Thoughts? Thanks! ...scott ___ 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 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] Oxygen/Perforce connector?
I have a client who is interested in using Oxygen with a Perforce repo. The only plugin/connector with Perforce I'm seeing is for Web Author .. am I missing something? Has anyone put together any sort of integration with Oxygen XML Editor and Perforce? This doesn't seem like an unreasonable expectation. Yes, Git is nice, but if your company has an existing Perforce installation, it's hard to get them to switch. Thoughts? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Re: [oXygen-user] Auto-insert element with cc_config
Thanks, Radu! I appreciate the information and additional options. Will look into what works best for this client. Regards, ...scott On 10/11/22 10:28 PM, Oxygen XML Editor Support (Radu Coravu) wrote: Hi Scott, Welcome to the Oxygen mailing list! The DITA "Insert image" dialog has a "Figure title" text field. Once you fill that, it automatically inserts a figure. So what you want may not be that necessary. Coming back to what you want, the "cc_config.xml" file does not have the ability to invoke custom actions in certain contexts. There are other settings when creating a DITA framework extension which allow you to remove an item from the content completion window (for example remove ) and add instead of it a custom Author action with the same name which may perform other things when invoked: https://blog.oxygenxml.com/topics/custom-author-action-content-completion.html For example you can create a custom Author action which inserts an XML snippet like this in the document: "" Oxygen has support for various editor variables which get expanded when used in XML snippets: https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/editor-variables.html This "/{ask('Input URL', ///relative_url/)}/" editor variable would show a very simple URL chooser, so it does not show the "Insert image" dialog. If you want to show the "Insert image" dialog, you have the option to create an Author action which calls a sequence of two or more other Author actions: https://blog.oxygenxml.com/topics/composing-author-actions.html Regards, Radu Radu Coravu Oxygen XML Editor On 10/11/22 18:07, Scott Prentice wrote: I've added the following to my cc_config file .. ** This properly inserts an element when a is added, but the Insert Image dialog doesn't display. I tried including "insert.image" in the insertElements attribute, but that didn't do the trick. Is it possible to get an image to be added when a fig is inserted, but also provide the Insert Image dialog? Thanks! ...scott ___ 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 mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
[oXygen-user] Auto-insert element with cc_config
I've added the following to my cc_config file .. ** This properly inserts an element when a is added, but the Insert Image dialog doesn't display. I tried including "insert.image" in the insertElements attribute, but that didn't do the trick. Is it possible to get an image to be added when a fig is inserted, but also provide the Insert Image dialog? Thanks! ...scott ___ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user