Search found 132 matches

by alin
Thu Oct 18, 2018 8:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp XSLT: Display metadata as visible content
Replies: 1
Views: 106

Re: WebHelp XSLT: Display metadata as visible content

Hello, I think that the Publishing Template's macros mechanism might help you. The macros are variables that you can use in the HTML Layout Files (https://www.oxygenxml.com/doc/versions/20.1/ug-editor/topics/whr_publishing_template_contents.html#ariaid-title4) or in the HTML Fragment Files (https://...
by alin
Wed Sep 19, 2018 12:52 pm
Forum: XSLT and FOP
Topic: XSLT accessing map elements while processing topics
Replies: 1
Views: 185

Re: XSLT accessing map elements while processing topics

Hello, In case of the WebHelp Responsive transformation you can use the new template whc:macro component to execute XPath expressions in the context of the DITA map. You can use the whc:macro components in a template HTML Page layout file or in an HTML fragment file . You can read more about macros ...
by alin
Fri Sep 07, 2018 3:45 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Trouble inserting Javascript content in Webhelp Responsive Output
Replies: 4
Views: 343

Re: Trouble inserting Javascript content in Webhelp Responsive Output

Hi Julie, The problem is that the '${oxygen-webhelp-output-dir}' macro is expanded by the WebHelp plugin only when it is used in an attribute value. In your case, the macro from the value that is assigned to top.location will not be replaced by the actual path to the output directory. However, in Ox...
by alin
Tue Jul 24, 2018 10:35 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Loading JavaScript AMD modules for the responsive WebHelp output
Replies: 4
Views: 359

Re: Loading JavaScript AMD modules for the responsive WebHelp output

Hello, The JavaScript file referenced using the "<js-amd-module/>" element will only be loaded as an AMD module using a "require" call. Furthermore, this JS file should reside in the Publishing Template's root directory. This means that it should be located in the same directory ...
by alin
Wed Jul 18, 2018 4:59 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Using WebHelp macros in HTML fragments
Replies: 4
Views: 380

Re: Using WebHelp macros in HTML fragments

Hello, Thank you for your feedback. I have submitted a task to our documentation team to update the WebHelp macros related topic in our User Guide. You are right. You can use the <whc:macro/> component to expand a ${macro} value in a text node. The <whc:macro/> component can be used in inline JavaSc...
by alin
Wed Jul 18, 2018 12:31 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Loading JavaScript AMD modules for the responsive WebHelp output
Replies: 4
Views: 359

Re: Loading JavaScript AMD modules for the responsive WebHelp output

Hello, Supposing that your template directory would look like this: [js-modules] --- the Publishing Template base dir - [js] - [datatables] - datatables.min.js - tables.js - template-main.js The tables.js should look as follows: define(["jquery", "localization", "./datatable...
by alin
Mon Jun 18, 2018 10:24 am
Forum: Common Problems
Topic: Webhelp responsive - Related links nav position
Replies: 1
Views: 290

Re: Webhelp responsive - Related links nav position

Hello,

Unfortunately you cannot move the related links without modifying the topic HTML template file. I will log your request in our issue tracking system to be analyzed.

Regards,
Alin
by alin
Mon May 14, 2018 4:54 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Using localized variables in webhelp HTML fragments
Replies: 3
Views: 478

Re: Using localized variables in webhelp HTML fragments

Hello, I hope I have correctly understood your use case. Please correct me if I am wrong. So, you are trying to customize the content of the footer sections in the WebHelp Responsive output HTML pages. I understand that your custom content is not static and you need to regenerate it at each transfor...
by alin
Mon May 14, 2018 2:58 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generate today's date in output
Replies: 4
Views: 518

Re: Generate today's date in output

Hello, You cannot use XSLT fragments directly in the DITA sources. If you want to customize the PDF output you can have a look at this topic in our User Manual: https://www.oxygenxml.com/doc/versions/20.0/ug-editor/topics/dita_pdf_output_customization.html You can also read more about this subject i...
by alin
Thu May 03, 2018 6:18 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generate today's date in output
Replies: 4
Views: 518

Re: Generate today's date in output

Hello, There is no out of the box setting that would allow you to insert the current date or time in the generated output. However, for the WebHelp Responsive output, you can achieve this behavior by contributing a custom XSLT extension stylesheet. You can use the following example as starting point...
by alin
Thu May 03, 2018 5:53 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Adding documents to WebHelp search index
Replies: 1
Views: 328

Re: Adding documents to WebHelp search index

Hello, Unfortunately, you cannot rerun the WebHelp indexer after the output has been generated. The WebHelp search engine indexes all HTML files found in its output directory. The only way you could force the WebHelp plugin to index your custom HTML files is to manually copy them in the WebHelp's ou...
by alin
Fri Apr 27, 2018 3:05 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: webhelp.head.script converts &,<,> to &amp; &lt; &gt;
Replies: 4
Views: 416

Re: webhelp.head.script converts &,<,> to &amp; &lt; &gt;

Hello, There is no predefined option (parameter) that would allow you to instruct the WebHelp plugin to not escape the XML special characters (&, <, >, etc.). The content of the file referenced using the "webhelp.head.script" parameter is included in the output HTML files via XSLT. Whe...
by alin
Thu Apr 26, 2018 10:53 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: webhelp.head.script converts &,<,> to &amp; &lt; &gt;
Replies: 4
Views: 416

Re: webhelp.head.script converts &,<,> to &amp; &lt; &gt;

Hello,

You should place your JS content inside an XML comment (<!-- -->):

Code: Select all

<script type="text/javascript">
  <!--
    if (1==1 && 2==2) {
      document.write('YES');
    }
  //-->
</script>


Regards,
Alin
by alin
Wed Apr 25, 2018 5:15 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Using localized variables in webhelp HTML fragments
Replies: 3
Views: 478

Re: Using localized variables in webhelp HTML fragments

Hello, We're created a customization of the responsive webhelp plugin where we run custom XSLT tasks for generating HTML fragments with localized texts (such as "Last updated" in the footer) from the webhelp localization framework. Is there any easier way to do this, especially with the ne...
by alin
Wed Apr 25, 2018 4:25 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to load custom JS libraries in the responsive webhelp transformation
Replies: 5
Views: 583

Re: How to load custom JS libraries in the responsive webhelp transformation

Hello, The problem is that the DataTables JS library is defined as a RequireJs module and it cannot be loaded via an HTML <script> tag. It should be loaded using a "require" call or as a dependency of another module. Unfortunatelly the RequireJS configuration used in WebHelp is not extenda...
by alin
Wed Apr 04, 2018 5:55 pm
Forum: Common Problems
Topic: How to display the build date in WebHelp Classic?
Replies: 1
Views: 363

Re: How to display the build date in WebHelp Classic?

Hello, The easiest way to insert the generation date in the WebHelp Classic output is to edit the "webhelp.copyright" parameter in the Transformation Scenario Dialog and use the Current Date Editor Variable ( ${date(yyyy-MM-dd)} ) as its value. For example set the parameter to: Date: ${dat...
by alin
Mon Mar 26, 2018 5:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive output functionally changed
Replies: 2
Views: 492

Re: Responsive output functionally changed

Hello, In version 20, the Publication TOC (formerly known as Side TOC) was hidden by default on mobile layouts. You can use the new Publishing Template feature along with the Save template as action to customize a built-in template in order to display the Publishing TOC on mobile layouts. You can fi...
by alin
Thu Mar 15, 2018 11:05 am
Forum: Common Problems
Topic: Problem running ditaWebhelp.bat
Replies: 2
Views: 361

Re: Problem running ditaWebhelp.bat

Hello, The WebHelp bundled in oXygen was only intended to be used from oXygen and not from the command line. This is a lightweight WebHelp distribution as it is missing some JAR files that are already found in the oXygen's core. In conclusion, if you want to trigger the WebHelp transformation from t...
by alin
Fri Feb 23, 2018 4:38 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: webhelp.skin.css in build.xml
Replies: 3
Views: 480

Re: webhelp.skin.css in build.xml

Hello Nick, Since you are referring to the "webhelp.skin.css" parameter I assume that you are trying to obtain an WebHelp Classic output. Can you please give me more details about your setup and usecase? ⋅ What type of documents are you trying to transform, DITA or DocBook? &sdot...
by alin
Tue Jan 30, 2018 10:35 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Failure publishing from Data Source Explorer
Replies: 2
Views: 565

Re: Failure publishing from Data Source Explorer

Hello, Sorry for the late reply! Indeed it seems that there is a problem when transforming a DITA Map located on a SharePoint server that was open via the Data Sources view. I will log an issue in our system to be analyzed. In my tests, I was able to successfully transform a SharePoint DITA Map when...
by alin
Mon Jan 22, 2018 7:21 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom XML to Responsive Webhelp Index Page discarding HTML entities
Replies: 1
Views: 361

Re: Custom XML to Responsive Webhelp Index Page discarding HTML entities

Hello, The XML fragment files should be well-formed in order to be parsed by the WebHelp Plugin. The only entities allowed in an well-formed XML file are the predefined entities (" &amp; ", " &apos; ", " &quot; " , " &gt; ", " &lt; &qu...
by alin
Wed Dec 20, 2017 3:42 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Template creates an empty div
Replies: 1
Views: 463

Re: Template creates an empty div

Hello, You can generate the ' notes ' in a temporary variable and then generate the ' <div> ' element if at least one note was found. For example: ............ <xsl:template name="generateItemGroupTaskElement"> <xsl:variable name="notes"> <xsl:apply-templates select="*[not(c...
by alin
Wed Nov 29, 2017 3:29 pm
Forum: General XML Questions
Topic: Extension Point for commonComponentsExpander.xsl
Replies: 1
Views: 596

Re: Extension Point for commonComponentsExpander.xsl

Hello, The " commonComponentsExpander.xsl " module is referenced from the stylesheets that process the WebHelp template pages. Its role is to generate the common components in these pages. If you want your change to reflect in all pages, you should consider the following extension points: ...
by alin
Tue Nov 14, 2017 3:58 pm
Forum: Common Problems
Topic: XML refactoring preview highlights namespace declarations
Replies: 3
Views: 638

Re: XML refactoring preview highlights namespace declarations

Hello,

Thank you for your feedback! I have logged your request in our issue tracking tool.

Regards,
Alin
by alin
Wed Nov 08, 2017 1:24 pm
Forum: Common Problems
Topic: XML refactoring preview highlights namespace declarations
Replies: 3
Views: 638

Re: XML refactoring preview highlights namespace declarations

Hello, I was able to obtain a similar situation using the XML document listed below: <root xmlns:ns="my-ns"> <other xmlns:ns="my-ns" ns:attr="value"/> <sec> <title>My Title</title> </sec> </root> As you can see, in my case, the namespace declaration is redundant as it a...
by alin
Mon Oct 23, 2017 11:23 am
Forum: XSLT and FOP
Topic: wh_not_expandable
Replies: 1
Views: 802

Re: wh_not_expandable

Hello, The wh_not_expandable class is internally used by the "expand-collapse" mechanism in WebHelp Responsive and it should not affect your content filtering implementation. The "expand-collapse" feature toggles the visible state of certain content in WebHelp. We use the class a...
by alin
Mon Oct 09, 2017 5:06 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: 19.1 Responsive Top Nav Not Obeying Top Menu Depth Setting
Replies: 6
Views: 774

Re: 19.1 Responsive Top Nav Not Obeying Top Menu Depth Setting

Hello,

You can use one of the following two procedures to hide entries in the top menu:
https://www.oxygenxml.com/doc/versions/ ... nu_entries

Regards,
Alin
by alin
Thu Oct 05, 2017 1:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Convert Editor 19's customized webhelp to 19.1
Replies: 1
Views: 373

Re: Convert Editor 19's customized webhelp to 19.1

Hello, In version 19.1 the WebHelp Plugin was split in two main plugins, one that covers the WebHelp Classic functionality and one that covers the Responsive functionality. Thus the available extension points were redesigned. For the WebHelp Responsive plugin the following changes were performed: &s...
by alin
Tue Oct 03, 2017 4:26 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Accessing custom WebHelp responsive templates from custom framework
Replies: 1
Views: 576

Re: Accessing custom WebHelp responsive templates from custom framework

Hello, The templates presented in the WebHelp Responsive Scenario dialog are loaded from the following loacation: {DITA_OT_DIR} /plugins/com.oxygenxml.webhelp/templates/dita Please make sure that the DITA Open Toolkit option (from the Options > Preferences > DITA preferences page) points to your cus...
by alin
Thu Sep 07, 2017 12:17 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Changing Top Menu in Webhelp Reponsive Output
Replies: 3
Views: 680

Re: Changing Top Menu in Webhelp Reponsive Output

Hello, You can provide your own custom CSS that overrides the default styles for the WebHelp Responsive menu and menu toggle button. Unfortunately, this is not a very easy task because there are many CSS rules that need to be overridden. You can use the following CSS code as starting point: @media o...

Go to advanced search