How to validate Flare content files with external tools

This forum is for all Flare issues related to importing files or projects.

How to validate Flare content files with external tools

Postby frobert on Tue Mar 06, 2018 9:59 am

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
frobert
Jr. Propeller Head
 
Posts: 3
Joined: Tue Mar 06, 2018 2:13 am

Re: How to validate Flare content files with external tools

Postby ChoccieMuffin on Wed Mar 07, 2018 4:30 am

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 2018.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
ChoccieMuffin
Propellus Maximus
 
Posts: 1857
Joined: Wed Apr 14, 2010 8:01 am

Re: How to validate Flare content files with external tools

Postby frobert on Wed Mar 07, 2018 4:47 am

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

Postby frobert on Sat Mar 10, 2018 7:51 am

Just FYI, according to the Flare support team, this is not possible :(
frobert
Jr. Propeller Head
 
Posts: 3
Joined: Tue Mar 06, 2018 2:13 am


Return to Importing

Who is online

Users browsing this forum: No registered users and 2 guests