Skip to main content
September 22, 2010
Question

Style sheet not attached in compiled webhelp but is in Editor

  • September 22, 2010
  • 1 reply
  • 1312 views

We have RH8 and have noticed that in compiled webhelp, a few random topics are missing their style sheet.  In the editor the style sheet is attached and in Preview the topic appears as it should.

The stylesheet is in the output folder where it should be.  There are no extra copies of the stylesheet hiding in folders that could be causing problems.

We have even checked the box on the compiling box for "Additional Options" - apply stylesheet to all topics.  It does NOT fix the problem.

In the Topic List I selected all topics, and reselected the custom stylesheet.  This did NOT fix the problem.

To fix the issue we have to 1) apply the default.css stylesheet, then 2) apply the custom stylesheet to the specific topic.  This fixes the issue.

When we look at the code for the topic the change we see is this:

BAD (no style sheet appearing in compiled webhelp):

<link rel="StyleSheet" href="../../LifeSupport.css" type="text/css" />

GOOD (stylesheet appears in compiled webhelp):

<link rel="StyleSheet" href="..\..\LifeSupport.css" type="text/css" />

The difference is the direction of the \

Why would this matter and how can we proactively find and fix these topics?

Thank you so much for your help & advice!

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
September 23, 2010

Try one or all of the following:

  • Change it in the HTML View.
  • Apply another CSS, saving and then reverting to the correct one.
  • Try Republish All


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Willam van Weelden
Inspiring
September 23, 2010

It's a nasty RoboHelp habit. You can also try a find and replace operation on your sourece files and/or output files. (Backup first!)

Change all occurances of ..\ by ../. (Unless you use this text in your topics, which I doubt.)

Greet,

Willam

September 23, 2010

Willam, thanks for answering!

I'm terrified of changing ..\ to ../ with Search/Replace since when RH decided to apply the style sheet...the resulting code was ..\ - that is what worked!  So if I change it back will I put the problem back in?

We see ../ and ..\ for the stylesheet paths all the time - with no rhyme or reason.  Two topics created in RH8, back to back, will have different slash marks for the stylesheet...???  crazy!

The "problem" topics are not new ones.  nor are they ones that were recently edited.  They are existing topics that have been fine until now.

I'm hoping for a 'global solution' but am beginning to think that its a file-by-file fix that is "just life".  Agreed?