custom framework, file extension, xpath search project resources

Oxygen general issues.
bwbohl
Posts: 37
Joined: Mon Jan 23, 2017 11:20 am

custom framework, file extension, xpath search project resources

Post by bwbohl »

Hi everybody,

I'm currently creating a custom framework for Document Type Association in oXygen XML Editor. I defined two association rules, one relying on the namespace, the other on the filename extension – which in my use case often is custom, too, let's say ".xyz".

oXygen already recognises a "xml-file.xyz" as XML and doesn't ask for the file-type on opening the file.

The Problem now is using the XPath Query field on "project resources". When I select a folder containing multiple ".xyz"-files it returns a query error telling me:

"Could not execute XPath operation.
There are no XML files in the selected XPath scope."

Any help appreciated!
Thanks
=====
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: custom framework, file extension, xpath search project resources

Post by Radu »

Hi,

I will add an internal issue to try and see if we can remove this limitation and consider your extension as an XML file extension as it is defined in the document type association as a file pattern.
In the meantime you can go to the Oxygen Preferences->File Types page and add a mapping with your extension and the XML Editor content type.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bwbohl
Posts: 37
Joined: Mon Jan 23, 2017 11:20 am

Re: custom framework, file extension, xpath search project resources

Post by bwbohl »

Dear radu,

that already helped to make it work.
Now concerning custom frameworks and file extensions:

If it's not possible to consider a custom file extension as XML file extension programmatically maybe it is possible to add a file type when "installing" a framework?
I just want to avoid any extra steps for my potential users when using my framework ;-)
Last edited by bwbohl on Wed May 17, 2017 5:03 pm, edited 1 time in total.
=====
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: custom framework, file extension, xpath search project resources

Post by Radu »

Hi,

These are all the options you have to share custom settings with others:

https://www.oxygenxml.com/doc/versions/ ... ities.html

Unfortunately a framework configuration cannot impose global application-wide settings.
A plugin could do that by calling our API. We have plugins which are called when the application is started and they can impose those settings.
A sample plugin which imposes options can be found here:

https://github.com/oxygenxml/wsaccess-j ... le-plugins

The plugin is based on this extension:

https://www.oxygenxml.com/doc/versions/ ... in-js.html

So end users would need to install on their side both a plugin and a framework.
Frameworks and plugins can be elegantly shared using our add-ons mechanism:

https://www.oxygenxml.com/doc/versions/ ... ddons.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bwbohl
Posts: 37
Joined: Mon Jan 23, 2017 11:20 am

Re: custom framework, file extension, xpath search project resources

Post by bwbohl »

Hi,

many thanks for pointing those out!
I'll be investigating ;-)

oXygen support rocks!
=====
oXygen XML Editor v24.1
macOS Monterey 12.3.1 Apple Silicon
Post Reply