Search found 140 matches

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

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: 1
Views: 164

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

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

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

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

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

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

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: 4
Views: 1237

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

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

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

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

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

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", "./datatables/datatables.min"], funct...
by alin
Mon Jun 18, 2018 10:24 am
Forum: Common Problems
Topic: Webhelp responsive - Related links nav position
Replies: 1
Views: 740

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

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

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

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

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

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. When serializing ...
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: 1206

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

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 new publishi...
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: 1415

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 extendable (at le...
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: 802

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: ${date(yyyy-MM-...
by alin
Mon Mar 26, 2018 5:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive output functionally changed
Replies: 2
Views: 1131

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

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

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? In case you are using DITA,...
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: 1127

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

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 (" & ", " ' ", " " " , " > ", " < ") and the character entities (" &# decimal number ; " or " &#x Hexadecimal number ...
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: 901

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(contains(@type,'important'...