Transforming to HTML strips all dash characters

Here should go questions about transforming XML with XSLT and FOP.
robert3L
Posts: 21

Transforming to HTML strips all dash characters

Tue Jul 21, 2015 7:54 pm

We have a large Help system authored in DocBook XML. Our developers have integrated Saxon transformation to HTML (EclipseHelp plugin is the final format). We noticed that in all our code examples, all the dash characters are stripped out. I don't think this was happening with the older version of Author I was using... it might have begun with upgrade to 16.1.

The xml sources declare:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
and all the dash characters are present in the source files as the - character (i.e. not as an entity like &ndash;).

The HTML files in our help after the transformation declare:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">


I tried the DocBook WebHelp scenario (Author 16.1 Mac) on one of the problem source files, and the HTML output file declares:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


However, in all cases, the dash (-) characters are stripped.

Code: Select all

$JDK_HOME/bin/keytool -importcert -file
becomes

Code: Select all

$JDK_HOME/bin/keytool importcert file

Code: Select all

apt-­get install openssl
becomes

Code: Select all

apt­get install openssl


In project settings, the Fallback character encoding option is set to: ISO-8859-1

Any suggestions how to fix this will be greatly appreciated.
robert3L
Posts: 21

Re: Transforming to HTML strips all dash characters

Wed Jul 22, 2015 12:46 pm

For some reason I couldn't edit my post to add an image. So here it is as a reply:

Image
mihaela
Posts: 188

Re: Transforming to HTML strips all dash characters

Thu Jul 23, 2015 10:44 am

Hi,

From what I understand the generated HTML contains the dash character but it is not rendered in the browser.
I think that it should be a CSS or a font related problem.
Did you try to open the output in a different browser or on a different machine?

You can send us some sample files (initial document and the generated output) on our support email address: support@oxygenxml.com
and we will try to help you find the problem.

Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
robert3L
Posts: 21

Re: Transforming to HTML strips all dash characters

Thu Jul 23, 2015 12:19 pm

It definitely happens on different browsers and on different machines. It happens when I do a local build on my Mac using a transformation scenario, but it's also present in Help built with our own builder, using a different CSS, running on the company's demo servers, which run Linux (not sure which Linux).

So I will open a support ticket via email with file samples after I get back to my home location next week. I would like to try the old version of Author on my old computer to see if it's a long-standing problem that nobody noticed before, or if it was introduced after I got a new computer and upgraded Author.

Thanks.

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 3 guests