Expected behaviour? - No Schematron validation with XHTML?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
UserPi
Posts: 2
Joined: Mon Mar 23, 2015 6:15 pm

Expected behaviour? - No Schematron validation with XHTML?

Post 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!
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Expected behaviour? - No Schematron validation with XHTM

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
UserPi
Posts: 2
Joined: Mon Mar 23, 2015 6:15 pm

Re: Expected behaviour? - No Schematron validation with XHTM

Post by UserPi »

Thanks Adrian, that solved it.
Post Reply