Error when building HTML5

This forum is for all Flare issues not related to any of the other categories.
Post Reply
errkka
Propeller Head
Posts: 10
Joined: Sat Apr 13, 2019 2:26 am

Error when building HTML5

Post by errkka »

When I build my HTML5 target I recieve this following error:

"10086, Build failed: The namespace declaration attribute has an incorrect 'namespaceURI': '"

This error started after updating to Flare 2020 r2. Anyone else that has this problem?
errkka
Propeller Head
Posts: 10
Joined: Sat Apr 13, 2019 2:26 am

Re: Error when building HTML5

Post by errkka »

Solved.

I just created a new HTML-target with the same TOC and it worked fine.
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Error when building HTML5

Post by bobmoon »

I am having this same problem with compiling HTML5 projects in 2020 r2. Can you clarify what you did? Did you create a new HTML5 target and mirror the settings? I've tried that and I'm still having an issue.

The compile seems to fail when applying the MasterPage. I've tried creating a new master page and copying over the content. I'm comparing the newly-generated files with the old files, and nothing jumps out.

I guess I'll have to recreate each element until I can pin down what fixes the issue.

Thanks,
Bob
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Error when building HTML5

Post by bobmoon »

Well, that was a sticky one.

Turns out I had a couple of topics with "extra" namespace declarations hiding in the source code. These were inserted years ago, perhaps because these topics were edited by my UI guy outside of Flare.

These have compiled fine for years, but Flare v2020 r2 chokes and throws a build error when it tries to build those topics into help. The build log could be helpful by pinpointing the topic where the problem happened. Instead I ended up slowly deconstructing the target, the MasterPages, and stylesheets trying to nail down the culprit.

If anyone else hits the problem, the fastest fix would be to start by searching your source for "xmlns=" to see if you have non-Flare namespace declarations.

See the xmlns="http://www.w3.org/1999/xhtml" and xmlns="" entries hiding below. A simple search and replace to get rid of them fixed the problem.

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" class="" MadCap:conditions="SingleSource.ScreenOnly">

        <link href="../Resources/Stylesheets/HelpTipCenter.css" rel="stylesheet" type="text/css" xmlns="http://www.w3.org/1999/xhtml" />

    <body xmlns="http://www.w3.org/1999/xhtml">

            <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="margin-left: 0;margin-right: 2em;" xmlns="http://www.w3.org/1999/xhtml">

                                        <li xmlns="">Use the <b xmlns="http://www.w3.org/1999/xhtml">Search</b> box above to perform a full-text search </li>


errkka
Propeller Head
Posts: 10
Joined: Sat Apr 13, 2019 2:26 am

Re: Error when building HTML5

Post by errkka »

I just created a new HTML5 Target and had the same settings as the first one. Have no clue why it worked but it did.
Post Reply