Page 1 of 1

Missing Linked Stylesheet errors

Posted: Tue Apr 08, 2008 11:43 am
by Patman
I've chased my tail on this, and hope someone can help.

I have one stylesheet in my project. I'm getting 10 of 120 topics to kick an error when I build my DotNet help. The error:
Description: Missing linked source file file:///...My Projects/Master HELP/Content/Menu Item Help/Codes and Types/LT 1.css
Subsystem: Compiler
File: ...\My Projects\Master HELP\Content\Menu Item Help\Codes and Types\topic1.htm

When I go to Tools - Stylesheet Links of topic1, my only stylesheet (LT 1.css) is where it should be .../My Projects/Master HELP/Content/Resources/Stylesheets/ and appears in both panes of the Stylesheet Links dialog box.

But when I right click on the topic1.htm entry in the Content Explorer, go to Properties - Topic Properties, the Stylesheet: field shows (missing: file:///...My Projects/Master HELP/Content/Menu Item Help/Codes and Types/LT 1.css.

LT 1 is available in the drop down list. I select it, and click OK. I go right back to the topic1.htm Properties and the Stylesheet: field says (missing: file:///... as before.

Sorry, this is kinda a hard thing to explain, but any help is greatly appreciated!

Re: Missing Linked Stylesheet errors

Posted: Tue Apr 08, 2008 4:05 pm
by LTinker68
In the Content Explorer, right-click on topic1.htm and select Open with > Internal Text Editor. Look for the stylesheet reference near the top of the page. It's possible there are several references. The Properties page shows the stylesheet list as if you could only select one stylesheet, but you can have multiple stylesheet references in a topic. So you may think you're selecting your main stylesheet when in fact you're only adding that reference, not removing any old stylesheet references, and it's those old references that could be causing the problem.

If there are multiple stylesheet references, delete them, save the topic in the Internal Text Editor then close it, then open the Properties screen for the topic and specify the stylesheet.

Re: Missing Linked Stylesheet errors

Posted: Fri Apr 11, 2008 9:17 am
by Patman
Right on Lisa! Thanks. I found the reference while using the text editor as you suggested.