Publishing template logo problems

Post here questions and problems related to editing and publishing DITA content.
Bas10R
Posts: 34
Joined: Thu May 25, 2023 4:08 pm

Publishing template logo problems

Post by Bas10R »

Hello there!
I'm configuring my custom publishing template, and I'm a bit stuck with the <logo> element in the template's .opt file.

Here's the current code for <resources> of the webhelp configuration:

Code: Select all

<resources>
            <!-- Main CSS file -->
            <css file="styles.css"/>
            <!-- CSS for notes -->
            <css file="notes.css"/>
            <!--  Favicon -->
            <favicon file="resources/images/favicon.png"/>
            <!--Logo-->
            <logo 
                file="resources/images/logo.png" 
                alt="Back to home page"/>
            <!-- Images -->
            <fileset>
                <include name="resources/**/*"/>
                <exclude name="resources/**/*.svn"/>
                <exclude name="resources/**/*.git"/>
            </fileset>
        </resources>
The file does not validate correctly because of the <logo> element and Oxygen displays the following error:
Invalid content was found starting with element 'logo'. One of '{js-amd-module, fileset}' is expected.
I've tried adding the expected elements (using quick fixes and manual fixes as well), but the validation error won't go away.
I'm using oXygen XML Editor 25.0, the project is based on the startup project template.

Kind regards,
Konrad
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Publishing template logo problems

Post by Costin »

Hi Konrad,

The validation error occurs as the order of the <logo/> and <favicon/> elements is incorrect.
More specific, the <logo/> element should come first, followed by <favicon/>. If you switch the two elements, the error should not occur anymore.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
Bas10R
Posts: 34
Joined: Thu May 25, 2023 4:08 pm

Re: Publishing template logo problems

Post by Bas10R »

Dear Costin,

As usual, on point and correct! Thank you for your help, worked as expected.
Post Reply