How to validate Flare content files with external tools

This forum is for all Flare issues related to importing files or projects.
Post Reply
frobert
Jr. Propeller Head
Posts: 3
Joined: Tue Mar 06, 2018 2:13 am

How to validate Flare content files with external tools

Post by frobert »

Hi,

I am working on moving from DocBook XML to Flare, and would like to convert our DocBook source files to Flare xhtml files.

Is there a way to validate Flare topic files to a schema file? Using the xsd schemas (MadCap.xsd, xhtml.xsd, and so on) found in the Flare.app\Resources\Schemas folder, even the most basic topic files fail to validate with an external tool (seem to be fine in Flare though).

For example, if testtopic.htm is:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd">
    <head>
    </head>
    <body>
        <h1>testtopic</h1>
        <p>Delete this text and replace it with your own content.</p>
    </body>
</html>
Then running xmllint --noout --schema MadCap.xsd testtopic.htm gives:
testtopic.htm:2: element html: Schemas validity error : Element 'html': No matching global declaration available for the validation root.

Any help is appreciated.

Kind Regards,
Robert
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: How to validate Flare content files with external tools

Post by ChoccieMuffin »

I'm completely guessing, but if you change the extension to .html rather than .htm would it work? (I'm only suggesting this as html is mentioned in the response from xmllint and I could be completely off course.)
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
frobert
Jr. Propeller Head
Posts: 3
Joined: Tue Mar 06, 2018 2:13 am

Re: How to validate Flare content files with external tools

Post by frobert »

Nope, that html refers to the <html> tag within the file.
frobert
Jr. Propeller Head
Posts: 3
Joined: Tue Mar 06, 2018 2:13 am

Re: How to validate Flare content files with external tools

Post by frobert »

Just FYI, according to the Flare support team, this is not possible :(
Post Reply