Search found 157 matches

by alin
Tue Mar 10, 2020 12:23 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Adding logo to the search bar
Replies: 1
Views: 115

Re: Adding logo to the search bar

Hy Syed, You can use an XSLT extension file to alter the HTML structure generated for the Search component. For example, the XSLT extension file may look as follows: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:whc="http://www.oxy...
by alin
Wed Feb 26, 2020 10:36 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: include bookmap xml:lang value to footer of main page
Replies: 7
Views: 691

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

Hello, The Macro Component can be used to execute a single XPath expression. There is no limit on how complex the expression is. My guess is a wh:macro is easier to use for basic customization, but for more complex conditions, an XSLT extension will work better. Yes, you are right. It was developed ...
by alin
Mon Feb 17, 2020 6:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Integrating two webhelp outputs
Replies: 3
Views: 142

Re: Integrating two webhelp outputs

Hello, Correct me if i am wrong, is the expectation that the doc source for both the products should reside in the same repository? Yes, you are right. Although this would be the ideal solution for the use case you have described in your first post, it is not necessary that you store both of your pr...
by alin
Fri Feb 14, 2020 1:49 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Integrating two webhelp outputs
Replies: 3
Views: 142

Re: Integrating two webhelp outputs

Hello, You could use a third DITA Map (supermap) that includes the maps for each product. For example: <map> <title>SuperMap</title> <topicref href="publication-A-dir/a.ditamap" format="ditamap"/> <topicref href="publication-B-dir/b.ditamap" format="ditamap"/> </map> Afterwards you can publish the s...
by alin
Fri Feb 14, 2020 12:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Multiple levels of menu in Webhelp Responsive Tree
Replies: 1
Views: 162

Re: Multiple levels of menu in Webhelp Responsive Tree

Hello, Here is a quick solution for the content structure generation part: You can use an XSLT extension file inside your current Publishing Template to override the default structure of the TOC component from the main page. The XSLT extension file should contain: <?xml version="1.0" encoding="UTF-8...
by alin
Mon Feb 03, 2020 5:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp XSLT: Display metadata as visible content
Replies: 7
Views: 1676

Re: WebHelp XSLT: Display metadata as visible content

Hello, https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/whr_publishing_template_contents.html says "To add new macros, you can add an XSLT extension to overwrite the wh-macro-extension template from the com.oxygenxml.webhelp.responsive\xsl\template\macroExpander.xsl file." The above stat...
by alin
Mon Feb 03, 2020 11:40 am
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 268

Re: Add text in welcome page

Hello, You can achieve this by using the localization support from WebHelp. You should follow the procedure described here: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/localize-webhelp-responsive.html?hl=localization#ariaid-title2 and add a localization entry for your we...
by alin
Thu Jan 30, 2020 4:25 pm
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 268

Re: Add text in welcome page

Hello,

Do you want the text you are inserting in the welcome page to be translated according to the current language of your publication?

Regards,
Alin
by alin
Fri Jan 24, 2020 4:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: include bookmap xml:lang value to footer of main page
Replies: 7
Views: 691

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

Hello, Is there a way to show the default value (en) if the xml:lang attribute is empty? You can use the following content in the HTML fragment file: <div xmlns:whc="http://www.oxygenxml.com/webhelp/components"> Publication Language: <b><whc:macro value="${map-xpath(if (/*/@*:lang) then /*/@*:lang e...
by alin
Fri Jan 17, 2020 10:46 am
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 268

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-html.html R...
by alin
Wed Jan 08, 2020 11:36 am
Forum: Other Issues
Topic: WebHelp topic tooltip shows garbled text
Replies: 1
Views: 113

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

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

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

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

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

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, ' '))}"/></b></p> </div> Regards, Alin
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: 151

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

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 siblings, to...
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: 691

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

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

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

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

Re: Check condition in topic-xpath macro

Hello,

Can you please try to use the following fragment:

Code: Select all


<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,
Alin
by alin
Fri Jan 18, 2019 4:14 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing WebHelp Responsive header
Replies: 4
Views: 1025

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

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

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

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

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

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 as the template's de...
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: 1230

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