Page 1 of 1

Expected behaviour? - No Schematron validation with XHTML?

Posted: Mon Mar 23, 2015 7:54 pm
by UserPi
Hi,

I have an XHTML document beginning

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
...

Schematron validation seems not to work with this document, unless I delete the xmlns attribute from the html element. Is this behaviour to be expected? (By doesn't work, I mean that with the xmlns attribute present, no matter what I specify in the Schematron rules, when I choose 'Validate with...' oXygen reports 'Validation successful'.)

Thanks in anticipation!

Re: Expected behaviour? - No Schematron validation with XHTM

Posted: Mon Mar 23, 2015 10:48 pm
by adrian
Hi,

Check your Schematron schema for namespaces. From what you are describing it looks like your Schematron does not account for the XHTML namespace.

Regards,
Adrian

Re: Expected behaviour? - No Schematron validation with XHTM

Posted: Tue Mar 24, 2015 1:49 pm
by UserPi
Thanks Adrian, that solved it.