Search found 33 matches

by Krille
Thu Feb 16, 2023 10:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to prefer jar files packed in a plugin?
Replies: 2
Views: 685

How to prefer jar files packed in a plugin?

Hi, I'm currently developing XPath bindings for the ICU4J library by providing Saxon function extensions. The aim is to have ICU's normalization and transliteration power in XPath. The bindings are also packed for use in Oxygen by providing a plugin. The call of a function from a transformation scen...
by Krille
Wed Nov 16, 2022 1:34 am
Forum: SDK-API, Frameworks - Document Types
Topic: Plugin - access files bundled with plugin
Replies: 2
Views: 933

Re: Plugin - access files bundled with plugin

Hi Cosmin!

Great, that works. Thanks.

I will post a link to my source code as soon as it's on a public repo.

Kind regards,
Christian
by Krille
Tue Nov 15, 2022 1:39 am
Forum: SDK-API, Frameworks - Document Types
Topic: Plugin - access files bundled with plugin
Replies: 2
Views: 933

Plugin - access files bundled with plugin

Hi! I'm writing a plugin for importing files from classical text editor to (TEI-) XML. In the plugin, I'd like to access an XSLT stylesheet bundled in the plugin. It is in the plugins folder xsl/tei.xsl . I'd like to pass this stylesheet to a Saxon transformer the plugin instantiates. But I don't kn...
by Krille
Mon Jun 27, 2022 11:36 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Transformation scenario: turn off XInclude expansion
Replies: 8
Views: 1449

Re: Transformation scenario: turn off XInclude expansion

Hi Radu, thanks for your answer! Passing all the JARs to the Ant was an important step. But it was also required to add configuration to the Ant file like described for Saxon in https://www.saxonica.com/html/documentation11/using-xsl/xsltfromant.html . So I added <factory name="net.sf.saxon.Tra...
by Krille
Sun Jun 26, 2022 4:22 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Transformation scenario: turn off XInclude expansion
Replies: 8
Views: 1449

Re: Transformation scenario: turn off XInclude expansion

PS: To be more precize, I'd like XInclude processing turned on and let it be processed by the patched version of Xerces included in oXygen. I want to use this patched version because it can process XPointer bare names (xpointer="#IDREF") and knows that @xml:id in the file to include from m...
by Krille
Sun Jun 26, 2022 4:00 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Transformation scenario: turn off XInclude expansion
Replies: 8
Views: 1449

Re: Transformation scenario: turn off XInclude expansion

Hi,

is there also a way to turn XInclude expansion on in ANT?

Kind regards,
Christian
by Krille
Tue May 10, 2022 11:44 am
Forum: SDK-API, Frameworks - Document Types
Topic: Transformation scenario: turn off XInclude expansion
Replies: 8
Views: 1449

Re: Transformation scenario: turn off XInclude expansion

Hi Radu! That works great! If someone want's to do similar things, here's my ANT file: <?xml version="1.0" encoding="utf-8"?> <!-- ANT build script USAGE (commandline): ant -buildfile THISFILE \ -Dsaxon.jar=~/.m2/repository/net/sf/saxon/Saxon-HE/10.2/Saxon-HE-10.2.jar \ -DinputFi...
by Krille
Thu May 05, 2022 11:36 am
Forum: SDK-API, Frameworks - Document Types
Topic: Transformation scenario: turn off XInclude expansion
Replies: 8
Views: 1449

Transformation scenario: turn off XInclude expansion

Hi! Is there a way to turn of the expansion of XIncludes for a single transformation scenario automatically? There was a discussion, where it was suggested to turn of the expansion in Options > Preferences > XML > ... https://www.oxygenxml.com/forum/other-issues/topic10319.html But this turns on/off...
by Krille
Tue Jan 18, 2022 9:51 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Framework inheritance hierarchy?
Replies: 6
Views: 1550

Re: Framework inheritance hierarchy?

Hi Alex, after some experiments and some thinking I found two things: 1) Moving externalAuthorActions to oxbytei_externalAuthorActions as you suggested helps. 2) Replacing ${framework} with ${framework(oXbytei)} in the intermediate framework gets it done -- at least as far as I see it now. After the...
by Krille
Fri Jan 14, 2022 9:27 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to store and access state variables?
Replies: 7
Views: 1520

Re: How to store and access state variables?

Hi Radu, yes, the resolver is removed on deactivate() because I don't want to have several instances of the same resolver. I guess, for a plugin it is rather PluginWorkspaceProvider.getPluginWorkspace().getUtilAccess().addCustomVariablesResolver(myResolver) instead, isn't it? I could put my variable...
by Krille
Fri Jan 14, 2022 7:00 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Framework inheritance hierarchy?
Replies: 6
Views: 1550

Re: Framework inheritance hierarchy?

Hi Alex, thanks for your answer! Good to know that C>B>A is intended! When I rename externalAuthorActions to o X bytei_externalAuthorActions or to o x bytei_externalAuthorActions I get the actions of oXbytei in the menu, the toolbar, etc. But they are without icons. And the actions, that use XSLTOpe...
by Krille
Thu Jan 13, 2022 8:18 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Framework inheritance hierarchy?
Replies: 6
Views: 1550

Framework inheritance hierarchy?

Hi, when developing author mode frameworks, what does extending a base framework mean? Say, we have three frameworks A, B, C. The framework definitions declare, that A has no base framework, B's base framework is A, and C's base-framework is B. Until today, I thought, that this would define a kind o...
by Krille
Thu Jan 13, 2022 7:43 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to store and access state variables?
Replies: 7
Views: 1520

Re: How to store and access state variables?

Hi Radu, it's a custom framework, not a plugin. It's online: https://github.com/SCDH/oxbytei Thank you for the hints regarding the storing of state! I'll have some experiments with either approach and let you know, which one works fine. The editor variables resolver is also part of the custom framew...
by Krille
Wed Jan 12, 2022 2:14 am
Forum: SDK-API, Frameworks - Document Types
Topic: How to store and access state variables?
Replies: 7
Views: 1520

Re: How to store and access state variables?

I also would like to know, how to register an EditorVariablesResolver for text mode.
The way, that I described, registers it only for author mode.
by Krille
Tue Jan 11, 2022 2:00 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to store and access state variables?
Replies: 7
Views: 1520

How to store and access state variables?

Hi, I'd like provide access to some strings, that are generated by an AuthorOperation through editor variables. Just like ${answer(@id)} provides access to the result of ${ask(..., @id)}. My SurroundWithAnchorsOperation operation has the instance variables (or getters) startId, endId and containerXP...
by Krille
Mon Jan 03, 2022 7:27 pm
Forum: SDK-API, Frameworks - Document Types
Topic: common interface for accessing context
Replies: 8
Views: 1798

Re: common interface for accessing context

Hi Alex,

yes, that'd be nice!

Happy new year,
Chris
by Krille
Fri Dec 31, 2021 2:58 pm
Forum: SDK-API, Frameworks - Document Types
Topic: common interface for accessing context
Replies: 8
Views: 1798

Re: common interface for accessing context

Hi Alex,

Nice! That works. Thanks!

It's time to share the code with the community now:
https://github.com/SCDH/oxbytei

Regards,
Chris
by Krille
Mon Dec 27, 2021 6:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: common interface for accessing context
Replies: 8
Views: 1798

Re: common interface for accessing context

Hi Radu, your hint in the first answer, to use the returned DOM nodes, is very instructive. I now pass the document node and an xpath expression for identifying the current node over to a PluginLoader class, which is called from both sides (the schema manager filter and the author mode operation). I...
by Krille
Tue Dec 21, 2021 12:27 pm
Forum: SDK-API, Frameworks - Document Types
Topic: common interface for accessing context
Replies: 8
Views: 1798

Re: common interface for accessing context

Hi Radu! Thanks for the clearance. I see. I was wondering about the return type of "ro.sync.contentcompletion.xml.Context.executeXPath(String, String[], boolean)" which according to the API docs (and my IDE) is an non-parametrized "java.util.List". So I use "java.util.List<O...
by Krille
Tue Dec 21, 2021 4:17 am
Forum: SDK-API, Frameworks - Document Types
Topic: common interface for accessing context
Replies: 8
Views: 1798

common interface for accessing context

Hi, when writing author mode operations I can use AuthorAccess.getDocumentController().evaluateXPath(...) for evaluating an XPath expression on the current document. When writing a schema manager filter I can use context.executeXPath(...) from ro.sync.contentcompletion.xml.Context for evaluating exp...
by Krille
Thu Dec 16, 2021 12:03 am
Forum: Other Issues
Topic: Configuring scenarios in framework extension scripts
Replies: 1
Views: 822

Configuring scenarios in framework extension scripts

Hi, I'm a great fan of the new extension scripts for configuring frameworks! But there seems to be a bug in the configuration of transformation or validation scenarios. Here's what I've done: 1) I've exported a globally defined transformation scenario with the export function in the setup dialog and...
by Krille
Tue Dec 14, 2021 6:15 pm
Forum: Feature Request
Topic: ${expand(...)} editor variable
Replies: 3
Views: 1086

Re: ${expand(...)} editor variable

Hi Radu, thanks for this hint! After few days now, I got used to reading oXygen's Java API. I found, that I can use code like this for trying to access editor variables in custom author mode actions: public class MyCustomOperation implements AuthorOperation { /* ... */ public void doOperation(Author...
by Krille
Mon Dec 06, 2021 6:11 pm
Forum: Feature Request
Topic: ${expand(...)} editor variable
Replies: 3
Views: 1086

${expand(...)} editor variable

Hi, right now, oXygen allows to set user-defined editor variables in a global or project-specific scope, e.g. ${myvar}. And it throws an exception, when trying to access an editor variable, that was not initialized (set). It would be cool, to have an editor variable (or a function) that would try to...
by Krille
Sat Dec 04, 2021 2:32 pm
Forum: Feature Request
Topic: $(xslt_eval(...)} editor variable
Replies: 4
Views: 1487

Re: $(xslt_eval(...)} editor variable

Hi Alex, I managed to write XSLT that extracts the XPath expressions and puts them into an XSL stylesheet. This stylesheet can then be tested with Xspec. Despite the intensive use of quoting in the XPath expression, it has shown to be executable in the test without the need of applying a refacturing...
by Krille
Tue Oct 19, 2021 11:48 pm
Forum: Feature Request
Topic: $(xslt_eval(...)} editor variable
Replies: 4
Views: 1487

Re: $(xslt_eval(...)} editor variable

Hi Alex, thanks for recording the issue! Writing XSLT for generating the XPath expression and inserting it a) into the author-mode-action and b) into something I can run in a test on is a cool idea. I'll definitively try that out. I will run into trouble with quoting an expression, that's already a ...
by Krille
Thu Oct 14, 2021 1:22 pm
Forum: Feature Request
Topic: $(xslt_eval(...)} editor variable
Replies: 4
Views: 1487

$(xslt_eval(...)} editor variable

Hi, I find myself regularly writing author mode actions with complex XPath expressions. These expressions generate values and labels for comboboxes or radio buttom in user dialogs from project content. E.g. like in this author mode action which inserts an element and an attribute to encode a bibliog...
by Krille
Fri Jun 04, 2021 2:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Framework extension and dependencies
Replies: 1
Views: 961

Framework extension and dependencies

Hi, I've already developed an author mode extension for TEI editing last year. Now, there are several new projects and their needs differ, e.g. regarding the script direction (left-to-right or right-to-left), so that different CSSs are needed, or templates and transformation scenarios are different ...
by Krille
Fri Dec 18, 2020 1:43 pm
Forum: Other Issues
Topic: resolve xinclude through catalog
Replies: 2
Views: 1548

Re: resolve xinclude through catalog

Hi Radu,

great, that works. Thank you!

Regards,
Christian
by Krille
Fri Dec 18, 2020 2:35 am
Forum: Feature Request
Topic: multi-select combobox for ${ask(...)}
Replies: 4
Views: 1774

Re: multi-select combobox for ${ask(...)}

Hi again,

I ended up using a CSS form based on oxy_popup() with contents provided by a schematron test. That fits my needs perfectly.

Regards,
Christian