Search found 268 matches

by alin
Fri Jan 17, 2020 10:46 am
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 2297

Re: Add text in welcome page

Hello, You can use the " webhelp.fragment.welcome " HTML Fragment extension point. You can find more information in our User Manual about Inserting Custom HTML content in the WebHelp Responsive output: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/wh-add-custom-h...
by alin
Wed Jan 08, 2020 11:36 am
Forum: Other Issues
Topic: WebHelp topic tooltip shows garbled text
Replies: 1
Views: 930

Re: WebHelp topic tooltip shows garbled text

Hello, This is a known issue which has already been resolved in the upcoming version. To overcome this problem you can use the following custom CSS rule in your WebHelp output: .wh-tooltip-container .wh-tooltip, .wh_breadcrumb .topicref .wh-tooltip, .wh_publication_toc .topicref .wh-tooltip { displa...
by alin
Thu Dec 12, 2019 5:23 pm
Forum: Other Issues
Topic: How to fix this "elements must consist of well-formed character data"?
Replies: 1
Views: 23968

Re: How to fix this "elements must consist of well-formed character data"?

Hello,

In order to avoid XML well-formedness errors you should wrap the JavaScript content of the <script> element using XML Comment markup.
For example:

Code: Select all

<script>
  <!-- 
     
     [Place your Javascript here]
  
  -->
</script>


Regards,
Alin
by alin
Tue Dec 10, 2019 7:46 pm
Forum: Common Problems
Topic: shortdesc formatting in WebHelp tooltips - broken?
Replies: 3
Views: 1353

Re: shortdesc formatting in WebHelp tooltips - broken?

Hello, The issue can be fixed by including the following CSS snippet into your generated output: .wh-tooltip-container .wh-tooltip, .wh_breadcrumb .topicref .wh-tooltip, .wh_publication_toc .topicref .wh-tooltip { display: block; } The procedure of using CSS to customize the output is described in o...
by alin
Fri Dec 06, 2019 2:54 pm
Forum: Other Issues
Topic: localStorage == null in wh_topic page
Replies: 2
Views: 1289

Re: localStorage == null in wh_topic page

Hello, Can you please give us more details about your customization. More specifically, how did you include the JS that retrieves the data from local storage in your output files? Are there any JS errors the browser's console? Also, we would need to know which version of Webhelp are you using. Regar...
by alin
Fri Nov 15, 2019 7:35 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS files associated with referenced HTML files are not being pulled into WebHelp output
Replies: 1
Views: 846

Re: CSS files associated with referenced HTML files are not being pulled into WebHelp output

Hello, You can use the webhelp.custom.resources parameter and set it to the path of a directory containing the resources that you want to copy to the output folder. All the resources will be copied to the root directory of the Webhelp output. Please see the Copying Additional Resources to the Output...
by alin
Tue Nov 12, 2019 4:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: spaces between different keyword in output
Replies: 1
Views: 967

Re: Responsive Webhelp: spaces between different keyword in output

Hello, You need to adjust your XPath expression in order to concatenate all keywords using a space as separator: <div class="keywords" xmlns:whc="http://www.oxygenxml.com/webhelp/components"> <p>Keywords: <b><whc:macro value="${topic-xpath(string-join(//keyword, ' '))}"...
by alin
Wed Oct 23, 2019 11:14 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Image in title tag shows abruptly in the webhelp nav
Replies: 1
Views: 742

Re: Image in title tag shows abruptly in the webhelp nav

Hello,

Thank you for reporting this issue. I have logged it in our system and a fix will be available in the next Webhelp release.


Regards,

Alin
by alin
Tue Aug 27, 2019 12:38 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add metadata from DITA map to menu items in HTML output
Replies: 2
Views: 1392

Re: Add metadata from DITA map to menu items in HTML output

With the XPath command map/topicref/topicref/topicmeta/audience/@type it is possible to get the desired result, namely "expert". When I try to achieve the same within sidetoc.xsl with //toc:toc/toc:topic/toc:topic/toc:topicmeta/toc:audience/@type I get the @type values from parents and si...
by alin
Wed Jul 31, 2019 4:32 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: include bookmap xml:lang value to footer of main page
Replies: 7
Views: 2622

Re: Responsive Webhelp: include bookmap xml:lang value to footer of main page

Hello, You can add custom HTML content in the WebHelp Responsive output by inserting it in a well-formed XML file that will be referenced in the transformation (either from an Oxygen Publishing Template or using one of the HTML fragment parameters ). The XML file can use WebHelp macros, which are va...
by alin
Fri Jul 26, 2019 9:41 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Webhelp Responsive - svg.dita.indexterms error
Replies: 3
Views: 2104

Re: Webhelp Responsive - svg.dita.indexterms error

Hello,

We managed to reproduce the issue on our side and I have logged it in our issue tracking system.
We will let you know when a solution is available.

Regards,
Alin
by alin
Tue May 21, 2019 5:48 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: 21.0 Webhelp Responsive foorer not centered
Replies: 2
Views: 1071

Re: 21.0 Webhelp Responsive foorer not centered

Hello, It seems that you are using a custom publishing template that was created starting from one of the templates in v. 20.1 or older. If your custom publishing template contains Custom HTML Page Layout Files please use the following procedure in our User Manual to update the layout files to versi...
by alin
Mon Mar 04, 2019 5:35 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Check condition in topic-xpath macro
Replies: 4
Views: 1781

Re: Check condition in topic-xpath macro

Hello, Did you manually copy the HTML Page Layout Files (HTML page templates) in your custom template? If yes, I suppose that you have omitted two additional files that are referenced from the page layout files. These are header.xml and footer.xml and they are not optional. Can you please check that...
by alin
Fri Mar 01, 2019 3:52 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Check condition in topic-xpath macro
Replies: 4
Views: 1781

Re: Check condition in topic-xpath macro

Hello, Can you please try to use the following fragment: <whc:macro value="${topic-xpath(if (normalize-space(string-join((//attribute::product), '')) != '') then string-join(('Note: The feature described above is available from release' , //attribute::product), ' ') else '')}"/> Regards, A...
by alin
Fri Jan 18, 2019 4:14 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing WebHelp Responsive header
Replies: 4
Views: 2312

Re: Customizing WebHelp Responsive header

Hello, You can retrieve metedata info from your input map using the macros template components: https://www.oxygenxml.com/doc/versions/20.1/ug-webhelp-responsive/topics/wh-add-custom-html.html#wh-add-custom-html__using_webhelp_macros_inside_a_html_fragment_file. You can add content before and after ...
by alin
Tue Jan 08, 2019 12:25 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp Responsive transform causes java.io.FileNotFoundException
Replies: 3
Views: 2139

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Hello,

Thank you for reporting this issue. I managed to reproduce the problem and I have logged it in our issue management system to be analyzed (ticket ID: WH-2115).

Regards,
Alin
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: 7
Views: 4234

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: 2030

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: 2442

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: 2643

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: 2473

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: 2643

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: 3
Views: 1851

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: 2305

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: 6644

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: 6644

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: 1619

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: 2715

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: 2715

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: 2305

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...