Search found 324 matches

by cristi_talau
Wed Mar 24, 2021 10:21 am
Forum: Common Problems
Topic: Override default profiling attribute styles - deliveryTarget
Replies: 4
Views: 176

Re: Override default profiling attribute styles - deliveryTarget

Hello,

The green border is added by the css/webauthor/profiling.css CSS file in the builtin DITA framework. You can remove this file in your DITA extension.

Best,
Cristian
by cristi_talau
Wed Mar 24, 2021 9:55 am
Forum: Common Problems
Topic: How to get display name of AuthorElement
Replies: 1
Views: 76

Re: How to get display name of AuthorElement

Hello, As of Web Author version 23.1, there are two methods to retrieve the display name of an author element none of which is public API : In JS code you can use sync.view.NodeRenderer.getRenderedText(node.getHtmlNode()) , where node is a Node of the XML document. In Java code you can use the follo...
by cristi_talau
Mon Mar 22, 2021 2:42 pm
Forum: Common Problems
Topic: Force the language to english and the display mode to full tags
Replies: 4
Views: 457

Re: Force the language to english and the display mode to full tags

Hello, The global options you tried to set are just controlling the defaults. User preferences take precedence. To override the user preferences you can use the following URL parameters when opening Web Author: &tags-mode=full-tags-with-attributes&lang=en The "tags-mode" parameter can also be passed...
by cristi_talau
Wed Mar 10, 2021 7:48 pm
Forum: Other Issues
Topic: Need to open a browser for SSO login in oxygen
Replies: 3
Views: 225

Re: Need to open a browser for SSO login in oxygen

Hello,

Yes. A plugin can have both Java and JavaScript extensions [1].

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... in-js.html
by cristi_talau
Fri Mar 05, 2021 4:36 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Avoid automatic generation value for required attributes
Replies: 5
Views: 322

Re: Avoid automatic generation value for required attributes

Hello, To troubleshoot the second approach you can set a breakpoint in the setAttribute method of the filter and look at the stack trace to see the code responsible for setting the attribute. The stack trace is obfuscated but you can share it with us if you do not understand where the call comes fro...
by cristi_talau
Fri Mar 05, 2021 12:37 pm
Forum: Common Problems
Topic: How to compute the node for href
Replies: 6
Views: 505

Re: How to compute the node for href

Hello, I am writing to let you know that we released Oxygen XML Web Author version 23.1 and that now the link text for links to titles are resolved correctly. For more details about what is new in this version, check out our website: https://www.oxygenxml.com/xml_web_author/whats_new.html . Best, Cr...
by cristi_talau
Fri Mar 05, 2021 12:10 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Avoid automatic generation value for required attributes
Replies: 5
Views: 322

Re: Avoid automatic generation value for required attributes

Hello, Regarding the first approach, if the IDs are automatically generated for an inserted fragment. the call stack looks like YourFilter.setAttribute ..... OxygenFilterBypass.insertFragment YourFilter.insertFragment You can set a field in your filter when it enters the insertFragment method and cl...
by cristi_talau
Thu Mar 04, 2021 6:09 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Example of integration / unit tests framework actions
Replies: 2
Views: 150

Re: Example of integration / unit tests framework actions

Hello,

If you want to write unit tests for Web Author customizations you can use the instructions here: https://www.oxygenxml.com/doc/versions/ ... lugin.html .

Best,
Cristian
by cristi_talau
Thu Mar 04, 2021 2:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Avoid automatic generation value for required attributes
Replies: 5
Views: 322

Re: Avoid automatic generation value for required attributes

Hello, I understand that you want to fully control the generation of the values for ID attributes (code in your case). I assume you implemented the "insertFragment" method of AuthorDocumentFilter. The automatic generation of ID attribute values is implemented in the AuthorDocumentFilterBypass.insert...
by cristi_talau
Thu Mar 04, 2021 1:33 pm
Forum: Common Problems
Topic: XML reformated after editing attributes in Author view
Replies: 1
Views: 90

Re: XML reformated after editing attributes in Author view

Hello, Some things to watch for: Server should be restarted after modifying the option The "Do not indent, do not break lines" option is applied only to areas affected by the change. For example, siblings of the element whose attribute was changed remain with their original formatting. The element i...
by cristi_talau
Tue Feb 16, 2021 12:59 am
Forum: Other Issues
Topic: Javascript Custom Action using XLST
Replies: 15
Views: 753

Re: Javascript Custom Action using XLST

Hello, 1. We have DOM-like API that you can use to determine if there is node with the ID attribute: https://www.oxygenxml.com/maven/com/oxygenxml/oxygen-webapp/23.0.0.0/jsdoc/sync.api.AuthorEditingSupport.html#getDocument__anchor . You can use the code below: function anyHasId(node) { console.log(n...
by cristi_talau
Fri Feb 05, 2021 12:03 am
Forum: Common Problems
Topic: Is it possible add CSS at runtime?
Replies: 2
Views: 289

Re: Is it possible add CSS at runtime?

Hello, Web Author supports custom DITA profiling attributes by default. The DITA specialization has to declare them using the domains attribute of the root element. This attribute should contain: a(props ATTR) where ATTR is the name of the custom profiling attribute. A more flexible option is to use...
by cristi_talau
Mon Feb 01, 2021 7:15 pm
Forum: Feature Request
Topic: Multiple Ditavals in WebAuthor URL
Replies: 1
Views: 644

Re: Multiple Ditavals in WebAuthor URL

Hello,

It is currently not possible to pass multiple DITAVAL files. I registered an internal issue to add this possibility. I will update this thread when it is implemented.

Meanwhile, you can create DITAVAL files that contain all the rules in those multiple files.

Best,
Cristian
by cristi_talau
Fri Jan 22, 2021 6:01 pm
Forum: General XML Questions
Topic: Using ChangeAttributeOperation in oxy_combobox onChange
Replies: 1
Views: 195

Re: Using ChangeAttributeOperation in oxy_combobox onChange

Hello,

The support for onChange property was added in version 21.1 of Web Author. Are you able to upgrade Web Author to a newer version to solve this issue?

Best,
Cristian
by cristi_talau
Tue Jan 12, 2021 9:26 pm
Forum: Common Problems
Topic: How to get marker content
Replies: 3
Views: 295

Re: How to get marker content

Depending on the node's getType() result, you can cast it to AuthorParentNode and use getContentNodes() to access children.
by cristi_talau
Tue Jan 12, 2021 2:36 pm
Forum: Common Problems
Topic: How to get marker content
Replies: 3
Views: 295

Re: How to get marker content

Hello, To get an XML representation you can use the AuthorDocumentController.createDocumentFragment() API. This returns an AuthorDocumentFragment that you can traverse and generate the XML text. To get an HTML representation, you can use the "copy-as-html" feature, but without setting the user clipb...
by cristi_talau
Fri Jan 08, 2021 12:02 pm
Forum: Common Problems
Topic: Get git-username from custom operation
Replies: 2
Views: 199

Re: Get git-username from custom operation

Hello,

The name of the Git user is also set as the "reviewer" name that is used for comments and change tracking. This name can be obtained by using

Code: Select all

authorDocumentModel.getReviewController().getReviewerAuthorName()
Best,
Cristian
by cristi_talau
Wed Jan 06, 2021 8:01 pm
Forum: Common Problems
Topic: How to filter content for given profiling attribute
Replies: 5
Views: 379

Re: How to filter content for given profiling attribute

Hello, You can filter the content by specifying a DITAVAL file as an URL parameter, or by using the JS API [1]. The default behavior is to render the excluded content with low opacity. You can add a custom CSS in the Web Author UI [2] to specify a different style for elements with "oxy-filtered" cla...
by cristi_talau
Mon Dec 28, 2020 11:32 am
Forum: Common Problems
Topic: How to compute the node for href
Replies: 6
Views: 505

Re: How to compute the node for href

Hello, I understand that you want to control how the editor renders the links. I was trying to say that the editor implements the same behavior as DITA-OT. This way, if people will see a link with no text in the editor, they will understand that the output will also contain an empty link (which is n...
by cristi_talau
Wed Dec 23, 2020 6:45 pm
Forum: Common Problems
Topic: How to compute the node for href
Replies: 6
Views: 505

Re: How to compute the node for href

Hello,

We will fix the "Table" link text in a future release. For links to table cell and table row, does not DITA-OT publishing generate the expected link text? What transformation type are you using? I tested with the PDF output and it did not generate.

Regards,
Cristian
by cristi_talau
Wed Dec 23, 2020 3:12 pm
Forum: Common Problems
Topic: How to compute the node for href
Replies: 6
Views: 505

Re: How to compute the node for href

Hello, Our DITALinkTextResolver tries to resolve the text for the same links that are resolved in the published output. For links to title elements, the published output resolves the links but the editor not - I registered an internal issue about this. To properly prioritize this issue I would like ...
by cristi_talau
Fri Dec 18, 2020 12:13 pm
Forum: Common Problems
Topic: How to extend built-in frameworks
Replies: 3
Views: 385

Re: How to extend built-in frameworks

We have here documentation about configuring the outline: https://www.oxygenxml.com/doc/versions/ ... -pane.html .
by cristi_talau
Thu Dec 17, 2020 9:28 pm
Forum: Common Problems
Topic: How to extend built-in frameworks
Replies: 3
Views: 385

Re: How to extend built-in frameworks

Hello, In version 23.0 we added support for a "Framework Extension Script" [1]. This way you can "programmatically" modify the builtin framework. I added at the end of the post the script that we used to generate the framework for Lightweight DITA. For changes you make in code, you can extend the de...
by cristi_talau
Thu Dec 17, 2020 1:16 pm
Forum: Common Problems
Topic: Problem with SecurityManager
Replies: 5
Views: 428

Re: Problem with SecurityManager

Hello, Thanks for the framework. I was able to reproduce the problem. One part of the error logs is interesting (you also found it in a previous post): access: domain that failed ProtectionDomain null null <no principals> java.security.Permissions@2c0231eb ( ("java.lang.RuntimePermission" "accessCla...
by cristi_talau
Tue Dec 15, 2020 6:37 pm
Forum: Common Problems
Topic: Problem with SecurityManager
Replies: 5
Views: 428

Re: Problem with SecurityManager

Hello,

If you could share a framework that we can use to reproduce the problem, we should be able to troubleshoot it more efficiently. To disable even more security features you can set the "com.oxygenxml.disable.security" to "true".

Best,
Cristian
by cristi_talau
Mon Dec 14, 2020 3:28 pm
Forum: Common Problems
Topic: Problem with SecurityManager
Replies: 5
Views: 428

Re: Problem with SecurityManager

Hello, We tested the Windows installer and the security manager system property is present by default in the service configuration dialog. The SecurityManager is configured in a file called tomcat/conf/catalina.policy . As you can see in this file, the code from the framework has all the security pe...
by cristi_talau
Mon Dec 07, 2020 5:05 pm
Forum: Common Problems
Topic: Rendering include content in DocBook
Replies: 17
Views: 1170

Re: Rendering include content in DocBook

Hello, Can you try to first read the content of the reference in a String to make sure that the content is fetched correctly? Here is how I implemented the entity resolver: xmlUtilAccess.addPriorityEntityResolver(new EntityResolver() { @Override public InputSource resolveEntity(String publicId, Stri...
by cristi_talau
Fri Dec 04, 2020 1:13 pm
Forum: Common Problems
Topic: Rendering include content in DocBook
Replies: 17
Views: 1170

Re: Rendering include content in DocBook

Hello, In my test, I tried to use inputSource.setCharacterStream() to give the content of the included file. The xi:include was resolved in this case. Also, I think a better way to get the current editor URL is to use ro.sync.exml.workspace.api.PluginWorkspace.getCurrentEditorAccess(int) . Best, Cri...
by cristi_talau
Thu Dec 03, 2020 8:39 pm
Forum: XML Schemas
Topic: need to make a questionare in xml
Replies: 1
Views: 875

Re: need to make a questionare in xml

Hello, This is an interesting use-case. In Web Author, the rendering of the XML document is configurable using CSS [1]. Also, the files are usually read and stored from a CMS or versioning system. You may need to write a custom connector if you want a different behavior [2]. If you share more detail...
by cristi_talau
Thu Dec 03, 2020 2:23 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 689

Re: Custom-Mapping of IDs to names

Hello, To read the text content of an XML node, you could use the DOM API [1], for example, node.textContent. To modify the content of a node you have to invoke a server-side operation, as you mentioned. To set the text content of an element you can use the ReplaceElementContentOperation [2]. Best, ...