Page 1 of 1

Publishing template logo problems

Posted: Thu Nov 09, 2023 4:46 pm
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

Re: Publishing template logo problems

Posted: Fri Nov 10, 2023 11:49 am
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

Re: Publishing template logo problems

Posted: Tue Nov 14, 2023 1:11 pm
by Bas10R
Dear Costin,

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