Page 1 of 1

Inserting HTML Content in WebHelp Responsive Output

Posted: Thu Feb 11, 2021 9:27 pm
by daryl
Hi,

I followed this guide to add some JavaScript into my page:

https://www.oxygenxml.com/doc/versions/ ... -html.html

But I wasn't able to insert the script in. Instead, my header just displayed the file path to the document I would like to insert.
Any idea how I could fix this?
sample_header.PNG
sample_header.PNG (3.35 KiB) Viewed 1486 times

Re: Inserting HTML Content in WebHelp Responsive Output

Posted: Fri Feb 12, 2021 10:24 am
by alin
Hello,

Please check that the content of your file (javascript.xhtml) is well-formed.
If you contribute this file using a transformation parameter, you need to set that parameter to the absolute path of the file.
If you contribute the file in your Publishing Template please provide more details about your template's configuration.

Regards,
Alin

Re: Inserting HTML Content in WebHelp Responsive Output

Posted: Fri Feb 12, 2021 9:14 pm
by daryl
Hi,

Is this considered well formed? I am only inserting a test template:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Title of document</title>
</head>
<body>
test

</body>
</html>
And I tried to set the parameter to the absolute path but it only displays the absolute path at the top.Image

Re: Inserting HTML Content in WebHelp Responsive Output

Posted: Mon Feb 15, 2021 1:11 pm
by alin
Hello,

Your HTML fragment is not well-formed because the associated DTD contains broken references.
When performing an well-formedness test in Oxygen, the check fails with the following error:
Image

Please remove the DTD declaration and your HTML fragment should be included in the WebHelp output.

Regards,
Alin