Inserting HTML Content in WebHelp Responsive Output

Questions about XML that are not covered by the other forums should go here.
daryl
Posts: 11
Joined: Thu Feb 11, 2021 9:22 pm

Inserting HTML Content in WebHelp Responsive Output

Post 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 1484 times
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: Inserting HTML Content in WebHelp Responsive Output

Post 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
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
daryl
Posts: 11
Joined: Thu Feb 11, 2021 9:22 pm

Re: Inserting HTML Content in WebHelp Responsive Output

Post 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
Attachments
demo.PNG
demo.PNG (6.55 KiB) Viewed 1457 times
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: Inserting HTML Content in WebHelp Responsive Output

Post 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
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply