Search found 604 matches

by alex_jitianu
Mon Sep 12, 2016 9:18 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hiding prolog in No-tag mode
Replies: 2
Views: 233

Re: Hiding prolog in No-tag mode

Hello, Unfortunately you can't style the author mode depending on the tags display mode. Hiding the prolog is easy: *[class~=" topic/prolog "] { display:none; } You can put this rule inside a new alternate CSS named "Hide prolog". The user will select this CSS from the Styles ite...
by alex_jitianu
Tue Sep 06, 2016 4:12 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Multilevel checkbox similar to Apply Profile dialog in Author view
Replies: 10
Views: 1742

Re: Multilevel checkbox similar to Apply Profile dialog in Author view

Hi Ashutosh, This current implementation will only work in oXygen 18 or will it workin in oXygen 17 as well? The button invokes an XQueryUpdateOperation and that operation was introduced in version 17.1. So as long as you use version 17.1 or later it will work. For prior versions, you'll have to inv...
by alex_jitianu
Tue Sep 06, 2016 9:25 am
Forum: SDK-API, Frameworks - Document Types
Topic: Multilevel checkbox similar to Apply Profile dialog in Author view
Replies: 10
Views: 1742

Re: Multilevel checkbox similar to Apply Profile dialog in Author view

Hi Ashu, You can use button form controls that will execute an author action. For example an XQueryUpdateOperation can change multiple attributes: table:before { content: oxy_button(action, oxy_action( name, 'Table', operation, 'XQueryUpdateOperation', arg-script, "if (@frame) then (replace nod...
by alex_jitianu
Fri Aug 26, 2016 9:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Changing the color of label in oxy_checkbox
Replies: 6
Views: 307

Re: Changing the color of label in oxy_checkbox

Hi Mounika, Here is a variant that will make the form controls look the same in both contexts. What you should be aware of: - if you take a look at 'booktitle' class attribute you will see that it is a specialization of topic 'title'. This means that if you want to style them equally, only one rule ...
by alex_jitianu
Wed Aug 24, 2016 2:14 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: To remove checkbox in imagemap
Replies: 1
Views: 173

Re: To remove checkbox in imagemap

Hi Mounika, The "imagemap" element is a specialization of the "fig" element. To ensure that @pgwide form control is not presented for the imagemap, add this CSS rule after the rule that sets form control on the "fig" element: *[class~="ut-d/imagemap"]:after { ...
by alex_jitianu
Wed Aug 24, 2016 12:15 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Changing the color of label in oxy_checkbox
Replies: 6
Views: 307

Re: Changing the color of label in oxy_checkbox

Hi Mounika, That's strange. The "color" property, when set on a check box form control, will apply on the check box label. I suspect that you accidentally put the property in the CSS rule (instead of inside the oxy_checkbox() function) and that's why it affected the label before the form c...
by alex_jitianu
Wed Aug 24, 2016 12:11 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Change in textbox size
Replies: 1
Views: 185

Re: Change in textbox size

Hi Mounika, You can't impose a height for form controls but you can make them inherit the font size from the element they are bound to: text:before { font-size:20px; content: "Label" oxy_textfield(edit, '@scale', width, 10em, fontInherit, true); } In the previous example, the label precedi...
by alex_jitianu
Tue Aug 23, 2016 4:12 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Changing the color of label in oxy_checkbox
Replies: 6
Views: 307

Re: Changing the color of label in oxy_checkbox

Hi Mounika, The check box form control accepts a 'color' property. You can use this together with a proper selector: *[class~="bookmap/booktitle"] *[class~="topic/image"]:before { content: "Scale: " oxy_textfield(edit, '@scale', width, 10em) "Scalefit: " oxy_c...
by alex_jitianu
Wed Aug 17, 2016 4:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Disabling one attribute on selecting other
Replies: 3
Views: 208

Re: Disabling one attribute on selecting other

Hi Mounika, @scalefit is indeed hidden when selecting @scale but as soon as you remove the value from @scale it will be presented again. This applies to both of them: as soon as you input a value in one the other disappears. As soon as you remove the value both of them are presented. Unfortunately y...
by alex_jitianu
Wed Aug 17, 2016 2:11 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Disabling one attribute on selecting other
Replies: 3
Views: 208

Re: Disabling one attribute on selecting other

Hi, This looks to be the same requirement you've described in: https://www.oxygenxml.com/forum/viewtopic.php?f=20&t=13416 I expected the CSS block I provided there to give you this exact behavior: *[class~="topic/image"]:before { content: "Scale: " oxy_textfield(edit, '@scale...
by alex_jitianu
Wed Aug 17, 2016 11:08 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: To have both text field,check box for an element
Replies: 3
Views: 298

Re: To have both text field,check box for an element

Hi Mounika, Unfortunately not. Changing the tags display mode only affects the little markers we paint to mark the beginning and end of an element. What you could do is to create an alternate CSS and put the special rules there. When the users select this CSS from the Styles item on the toolbar, the...
by alex_jitianu
Fri Aug 12, 2016 10:38 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSLT from 15.2 SDK
Replies: 2
Views: 1501

Re: XSLT from 15.2 SDK

Hi,

What API are you referring to? In version 15.2 there is API for creating a licensed Saxon 9 transformer:

Code: Select all

pluginWorkspace.getXMLUtilAccess().createXSLTTransformer()

Of course, the Saxon 9 bundled with the Oxygen version running the plugin will be used.

Best regards,
Alex
by alex_jitianu
Fri Aug 12, 2016 8:49 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hiding attributes
Replies: 1
Views: 194

Re: Hiding attributes

Hi Mounika, A colspec is an element and it is hidden because of a CSS rule like this: *[class~='topic/colspec'] { display : none ; } You should put all your CSS rules inside a CSS and afterwards, go to Options->Preferences, on the Document Type Association page and edit or extend the DITA document t...
by alex_jitianu
Thu Aug 11, 2016 4:32 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Validation in CSS.
Replies: 1
Views: 180

Re: Validation in CSS.

Hi Mounika, The CSS controls only the layout and formatting of the author mode. The validation is performed against the schema associated with the document. The default schema behind DITA (in most cases a DTD) already restricts the possible values for @scale ( "50" is a valid value but &qu...
by alex_jitianu
Wed Aug 10, 2016 11:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: s9api and Saxon extensions
Replies: 2
Views: 1549

Re: s9api and Saxon extensions

Hello, From an Workspace Access plugin you can create a Saxon EE transformer: pluginWorkspaceAccess.getXMLUtilAccess().createXSLTTransformer( styleSource, extensionJars, XMLUtilAccess.TRANSFORMER_SAXON_ENTERPRISE_EDITION, false) You will get a JAXP transformer that you can use to transform the XSL d...
by alex_jitianu
Wed Aug 10, 2016 10:19 am
Forum: SDK-API, Frameworks - Document Types
Topic: How to access resources from javascript
Replies: 3
Views: 1596

Re: How to access resources from javascript

Hi Steve,

I see you're find the solutions faster that I can answer :) Yes, this is the way you can obtain the framework directory:

Code: Select all

frameworkDir = authorAccess.getUtilAccess().expandEditorVariables("${frameworkDir}", null);


Best regards,
Alex
by alex_jitianu
Wed Aug 10, 2016 10:16 am
Forum: SDK-API, Frameworks - Document Types
Topic: Oxygen SDK tutorial
Replies: 3
Views: 1499

Re: Oxygen SDK tutorial

Hi Alekso, There is a file mySample/README.html that gives a few hints about what you should do. The main idea is that you should run mvn install in the oxygen-sample-plugin-workspace-access project and afterwards you will have a complete package at : oxygen-sample-plugin-workspace-access/target/oxy...
by alex_jitianu
Tue Aug 09, 2016 4:51 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: To have both text field,check box for an element
Replies: 3
Views: 298

Re: To have both text field,check box for an element

Hi Mounika, You should be able to control this behavior through CSS rules. I don't know how the rules you've tried look like but here are some CSS rules that I believe work as you desire: *[class~="topic/image"]:before { content: "Scale: " oxy_textfield(edit, '@scale', width, 10e...
by alex_jitianu
Tue Aug 09, 2016 4:24 pm
Forum: SDK-API, Frameworks - Document Types
Topic: commons.js location
Replies: 2
Views: 1412

Re: commons.js location

Hi,

It has to be in the root of the framework folder. That's the only place where we will look for it. I understand your predicament as for other settings we recommend to add the folder inside classpath so I will update the documentation to make this clear.

Best regards,
Alex
by alex_jitianu
Thu Aug 04, 2016 11:40 am
Forum: Other Issues
Topic: Defaulting prolog in Author mode
Replies: 3
Views: 598

Re: Defaulting prolog in Author mode

Hello, If you've opted for the second option then it means that you have the "fold" rule inside a new CSS. This new CSS should be applied on top of any active CSS as long as you left the "Title" empty and the "Alternate" button unchecked. By default, Oxygen activates th...
by alex_jitianu
Tue Aug 02, 2016 12:21 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Inserting figures
Replies: 4
Views: 331

Re: Inserting figures

Hello, Oops, my bad! I forgot to mention where you should put the rule... A good place to put it would be {oxygenInstallDir}\frameworks\dita\resources\dita-1.2-for-xslt2-mandatory.sch To inspect the schema that are used when validating DITA you can go to Options->Preferences ..., on the Document Typ...
by alex_jitianu
Mon Aug 01, 2016 4:01 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Inserting figures
Replies: 4
Views: 331

Re: Inserting figures

Hello, If I understand correctly the situation, sometimes the users accidentally position themselves at the end of a paragraph (instead of positioning after it) and insert the figure there. If the correct position is always "after" a paragraph, then I would suggest to create a Schematron r...
by alex_jitianu
Thu Jul 28, 2016 12:52 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Change in drop down value after selection
Replies: 1
Views: 161

Re: Change in drop down value after selection

Hi Mounika,

You can use the labels property:

Code: Select all

pre:before {
    content: oxy_combobox(
            edit, '@outputclass',
            editable, false,
            values, 'pgwide-cond, pgwide-exp',
            labels, 'pgwide condensed, pgwide expanded')
}


Best regards,
Alex
by alex_jitianu
Tue Jul 26, 2016 3:20 pm
Forum: Other Issues
Topic: Defaulting prolog in Author mode
Replies: 3
Views: 598

Re: Defaulting prolog in Author mode

Hello, The prolog is already marked as being foldable so all you need to do is to set its initial state: *[class~="topic/prolog"] { -oxy-folded:true; } You should also make sure you are adding the rule inside the right CSS. You haven't mentioned which Oxygen version you are using and that'...
by alex_jitianu
Mon Jun 20, 2016 2:22 pm
Forum: Common Problems
Topic: New Actions Toolbar
Replies: 4
Views: 566

Re: New Actions Toolbar

Hello, In oXygen XML WebApp the toolbar is a client-side component. Because of that you'll have to use our Javascript API to customize it (as my colleague Cristian advised you). This Javascript code can reside in a number of predefined locations: https://www.oxygenxml.com/doc/versions/18.0/ug-editor...
by alex_jitianu
Mon Jun 20, 2016 10:44 am
Forum: Other Issues
Topic: Is it possible to use Oxygen Diff Files Tool from Author Com
Replies: 3
Views: 899

Re: Is it possible to use Oxygen Diff Files Tool from Author Com

Hi Joerg,

The Diff support is still not available in the Author Component. Can you tell me more about your situation? Are you also embedding the Author component into a third-party standalone Java application? How would you use the Diff support?

Best regards,
Alex
by alex_jitianu
Tue Jun 14, 2016 11:51 am
Forum: Common Problems
Topic: Error message "Value of {cdata-section-elements} must be a list of QNames in '{uri}local' notation" when using Saxon 9
Replies: 2
Views: 677

Re: Error message "Value of {cdata-section-elements} must be a list of QNames in '{uri}local' notation" when using Saxon

Hello Martin, Thank you for reporting this issue. I believe I've found the cause and it resides somewhere in Saxon's code. What happens is that Saxon parses the @cdata-section-elements as clark names obtaining: {}MASTER_COMMENTS. Later on, it does a validation of these clark notations and throws tha...
by alex_jitianu
Thu May 12, 2016 10:07 am
Forum: Common Problems
Topic: Using Saxon 9.7 and XSLT 3.0 and output method="adpative"
Replies: 2
Views: 482

Re: Using Saxon 9.7 and XSLT 3.0 and output method="adpative"

Hi Martin, Thank you for reporting this Saxon 9.7 related issue. I've investigated a bit and it looks like the "adaptive" method is explicitly handled inside the command line entry point: net.sf.saxon.Transform. We are using Saxon through its Java API for XML Processing (JAXP) implementati...
by alex_jitianu
Fri May 06, 2016 11:00 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Translate ox
Replies: 3
Views: 468

Re: Translate ox

Hi,

In the newly released Oxygen 18 you will be able to use translated labels:

Code: Select all

oxy_label(text, "${i18n(my.string)}", width, 150px, text-align, left)


Best regards,
Alex
by alex_jitianu
Fri May 06, 2016 9:48 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Trouble creating nested ordered lists in Author mode
Replies: 5
Views: 613

Re: Trouble creating nested ordered lists in Author mode

Hi, For those of you that find it interesting, the newly released Oxygen 18 has Promote/Demote support for List items. To use them, you have to position yourself at the beginning of the item and use the following keyboard shortcuts: - Promote (Shift + Tab) - Demote (Tab) If you prefer having author ...

Go to advanced search