Search found 254 matches

by Patrik
Thu Dec 03, 2020 6:50 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 203

Re: Custom-Mapping of IDs to names

Thanks again. I could make it work now! :)

Regards,
Patrik
by Patrik
Thu Dec 03, 2020 12:04 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 203

Re: Custom-Mapping of IDs to names

Hi again, with my dialog to modify the text content I first need to get the current content and later set it. I know I can do both steps with editor.getActionsManager().invokeOperation(). Is this the best way or are there alternatives? And I know there are existing operations to set the content. But...
by Patrik
Fri Nov 27, 2020 2:29 pm
Forum: Common Problems
Topic: Concept for custom java interaction
Replies: 2
Views: 50

Re: Concept for custom java interaction

Hi, thanks. I've created my own class AuthorOperationOnPurposeException with setOperationRejectedOnPurpose(true) in the constructor and it behaves as expected. In case anybody else has a similiar problem: I also found a comfortable way to pass my key-value-map to my JS code: Java: import org.codehau...
by Patrik
Thu Nov 26, 2020 4:57 pm
Forum: Common Problems
Topic: Concept for custom java interaction
Replies: 2
Views: 50

Concept for custom java interaction

Hi, I'm using quite some custom implementations of AuthorOperationWithResult to be called by the ActionsManager form the js code. The documentation of ActionsManager.invokeOperation() claims that on an exception the user will see an error message. Actually this doesn't happen for me. I find the exce...
by Patrik
Thu Nov 26, 2020 4:51 pm
Forum: Common Problems
Topic: Custom code after Git/commit
Replies: 2
Views: 46

Re: Custom code after Git/commit

Thanks for the idea. I also added some check to only enable a commit of dirty documents. This way I know for sure that a non-dirty document after commit has been commited.

Regards,
Patrik
by Patrik
Wed Nov 25, 2020 7:02 pm
Forum: Common Problems
Topic: Custom code after Git/commit
Replies: 2
Views: 46

Custom code after Git/commit

Hi, I want to add some custom javascript code after a git-commit-actions has completed successfully. I already managed to execute some code (console.log() for testing) after the action. But how do I check if the commit was successful? Currently it is also executed when the user aborts in the commit ...
by Patrik
Tue Nov 24, 2020 4:22 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 203

Re: Custom-Mapping of IDs to names

Hi again, thanks. I could make it work now. And it turned out that I don't need a plugin at all: I can do it all - including the custom actions (e.g. XSLT-transformation) on the server - just with the framework after adding the jar file to the classpath. For completion: instead of getting the xslt s...
by Patrik
Mon Nov 23, 2020 7:51 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 203

Re: Custom-Mapping of IDs to names

Hi, about the LinkTextResolver I have done so far: Added an implementation for ExensionBundle and LinkTextResolver into my plugin added the plugin-jar to the classpath for my custom documenttype selected the extensionbundle for my custom documenttype added oxy_link-text() in the css In the Oxygen XM...
by Patrik
Mon Nov 16, 2020 6:59 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 203

Re: Custom-Mapping of IDs to names

Hi Christian, thanks for the hints. Adding an edit-botton by css that calls a js-action already works. But some issues are remaining: I don't know how to implement or register the LinkTextResolver for the web author. In desktop version I implemented an extension bundle but I'm not aware that this ex...
by Patrik
Wed Nov 11, 2020 7:03 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 203

Custom-Mapping of IDs to names

Hi, I have a usecase where the XML file needs to cntains IDs but the user should be able to see and search for a name. The mapping I will need to get at runtime (or when starting to edit the xml file) from another webservice. So I have actuelly two oxygen related issues: Display the name for the ID ...
by Patrik
Tue Sep 29, 2020 12:39 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

Hi again, thanks, now I could make it work. Java class in my plugin: @WebappCompatible @WebappRestSafe public class IsDocumentValid extends AuthorOperationWithResult { private final static Logger logger = Logger.getLogger(IsDocumentValid.class.getName()); @Override public String doOperation(AuthorDo...
by Patrik
Fri Sep 25, 2020 4:02 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

Hi again, I found and fixed a typo in your code: commitAction.actionPef ro rmed = function(callback) Now I get the colsole output - by placing the code in a plugin and also by placing the code in a framework. However, I still don't now, how to get access to the DocumentValidator. Your sample plugin ...
by Patrik
Fri Sep 25, 2020 2:07 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

Hi Christian, thanks, but it still doesn't work. I added this code to my framework.js: goog.events.listenOnce(workspace, sync.api.Workspace.EventType.EDITOR_LOADED, function(e) { console.log("sync.api.Workspace.EventType.EDITOR_LOADED"); var editor = e.editor; goog.events.listenOnce(e.editor, sync.a...
by Patrik
Thu Sep 24, 2020 7:03 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

Hi Christian, thanks for the hints. Adding a check for isDirty() was indeed very simple. But I still struggle with the validation status: Using the plugin you suggested seemed to have no effect when commiting the file to an on-premise git repository. I'd assume that the commit would trigger the same...
by Patrik
Thu Aug 27, 2020 6:25 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

Hi again, I managed to transform the document and display it in a dialog to the user. Now I'd like to add two checks before the transformation: Ensure the current document is not modified (i.e. the changes were commited) I tried to call editorAccess.isModified() in the java code but this does not wo...
by Patrik
Mon Aug 24, 2020 12:46 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

I realized that the javascript code is executed in the browser - not the server. And after opening the browser console I also found my logging output. So for now I have no further questions...

Regards,
Patrik
by Patrik
Fri Aug 21, 2020 5:48 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Re: Adding xsl-transformation to custom framework

Hi Christian, thanks for the hint. So what I achievd so far is: setting up my local webauthor creating a custom framework with xsd and css compiling my own plugin as java code based on you sample web-author-xslt-report add it as plugin to my web author So the next step would be to extens my custom f...
by Patrik
Wed Aug 12, 2020 3:55 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1488

Adding xsl-transformation to custom framework

Hi, I've created a custom framewirk with xsd and css to edit some configuration files in Web Author (currently 21.1). Since the format is not exactly what we need, I'd like to create an xslt transformation. For now the result will just need to be displayed or (even better) copied to the clipboard, s...
by Patrik
Fri Nov 01, 2019 2:12 pm
Forum: Common Problems
Topic: Hiding folded placeholder
Replies: 6
Views: 1102

Re: Hiding folded placeholder

Hi Michael, thanks a lot. I followed your steps and now it works. Just for completion: the version shown on the license page: oXygen XML Web Author: 21.1, build 2019052218/2019052201 On the plugin page it did not give any additional information beside the exception. (That's only version I could find...
by Patrik
Fri Nov 01, 2019 11:50 am
Forum: Common Problems
Topic: Hiding folded placeholder
Replies: 6
Views: 1102

Re: Hiding folded placeholder

Hi Christian, thanks for the explanation. However, I still fail getting it to work. my files: plugin.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plugin SYSTEM "../plugin.dtd"> <plugin id="hide-folded-placeholder" name="Hide Folded Placeholder" description="Hides the placeholder for folded e...
by Patrik
Tue Oct 29, 2019 4:20 pm
Forum: Common Problems
Topic: Hiding folded placeholder
Replies: 6
Views: 1102

Re: Hiding folded placeholder

Hi Cristian, thanks for the hint. Unfortunately adding a custom css seems not to be as easy as it sounds. Inspired by the web-author-sample-plugins I tried it with this plugin.xml: <plugin id="hide-folded-placeholder" name="hide-folded-placeholder" description="Hides the placeholder when an element ...
by Patrik
Tue Oct 29, 2019 11:55 am
Forum: Common Problems
Topic: tags desplayed before :before
Replies: 1
Views: 451

tags desplayed before :before

Hi, I just noticed that in the desktop version the inline tags are displayed after the :before content. And this is great for my usecase because it surrounds the editable text content. But in Web-Author the opening tag is displayed before the :before content. Is there any way for me to change this? ...
by Patrik
Tue Oct 29, 2019 9:39 am
Forum: Common Problems
Topic: Hiding folded placeholder
Replies: 6
Views: 1102

Hiding folded placeholder

Hi, I have a custom framework with foldable elements and in the desktop version everything looks fine. But in teh web author there is the text "(Folded)" shown below by non-foldable child when the element is folded. How can I get rid of this? I could not find any documentation about a pseudo-class "...
by Patrik
Thu Aug 08, 2019 11:10 am
Forum: Common Problems
Topic: :before and width not working?
Replies: 2
Views: 758

Re: :before and width not working?

Hi Cristian,

indeed this worked for me.

Thanks a lot.
Patrik
by Patrik
Thu Aug 08, 2019 9:22 am
Forum: Common Problems
Topic: :before and width not working?
Replies: 2
Views: 758

:before and width not working?

Hi, with css I have this rule: service > *:before { width : 22em; content : " " name() ": "; } service > * { display : block; content : oxy_textfield(edit, "#text", width, 30em); visibility : -oxy-collapse-text; } The idea is to have vertially alligned text fields with the element name in front of i...
by Patrik
Thu May 09, 2019 11:24 am
Forum: Common Problems
Topic: Edit central XML file with Web Author?
Replies: 1
Views: 807

Edit central XML file with Web Author?

Hi, we have a central XML file for which we need a comfortable way to edit it - preferably from anywhere within our intranet. If I would edit the file locally with oXygen XML editor I would create a custom framework including identification of file type by file name or content XSD file schematron fi...
by Patrik
Wed Jun 20, 2018 12:45 pm
Forum: XML Schemas
Topic: Schematron:issue with @subject
Replies: 2
Views: 2408

Schematron:issue with @subject

Hi, I have created the following simplified test case: <root> <element1> <child/> </element1> <element2/> </root> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> <sch:pattern> <sch:rule context="root"> <sch:assert test="false()" subject="element2">Test1</sch:assert...
by Patrik
Tue Mar 20, 2018 5:03 pm
Forum: XSLT and FOP
Topic: messages from external Saxon
Replies: 2
Views: 1540

Re: messages from external Saxon

Hi Alex, I just found out that oXygen 20.0 includes Saxon 9.8.0.8 which supports XSLT 3.0 in HE. So I will try to switch to the new version tomorrow. (And adding some more parameters like generate-id() to the output also works good as a workaround or now.) Thus, there's no need for an additional plu...
by Patrik
Tue Mar 20, 2018 10:03 am
Forum: XSLT and FOP
Topic: messages from external Saxon
Replies: 2
Views: 1540

messages from external Saxon

Hi, with oXygen 18.1 I configured SaxonHE-9.8.0.10 as custom transformer. And within my xslt I use xsl:message to write some debugging information. It seems that oXygen filters the messages to remove duplicated lines. So for instance with this template <xsl:template match="/"> <xsl:for-each select="...
by Patrik
Wed Mar 14, 2018 1:14 pm
Forum: XSLT and FOP
Topic: Custom Saxon engine with external libraries
Replies: 2
Views: 1462

Re: Custom Saxon engine with external libraries

This one works fine. Thanks, Radu! :)

Patrik