[oXygen-user] DTD validation and namespace prefixes

George Cristian Bina
Wed May 9 03:49:33 CDT 2007

Dear Lars,

The DTDs are not namespace aware, if you want to validate against the 
DTD then the qualified name of the elements must be exactly what you 
define in the DTD. For instance you can change the schema to use the 
Schematron namespace as default namespace.

On the other hand the Schematron validation from the oXygen Schematron 
editor should ignore the DTD for validation but I see that it does not 
ignore it... We will fix that - the DTD if specified should be used only 
for eventual entity resolution. My suggestion is to remove it if your 
intention is only to validate against that.

Best Regards,
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Lars Huttar wrote:
> Hello,
> I have a Schematron schema that formerly was validating successfully 
> against a DTD, but now with Oxygen 8.2, is failing validation.
> The Schematron schema begins
>    <?xml version="1.0" encoding="UTF-8"?>
>    <!DOCTYPE sch:schema SYSTEM "schematron.dtd">
>    <sch:schema xmlns:sch="http://www.ascc.net/xml/schematron"
>    defaultPhase="done">
> The DTD, schematron.dtd, begins
>    <!ELEMENT schema  ( title?, ns*, phase*, p*, pattern+ , p*,
>    diagnostics )>
> As you can see, the DTD does not allow for the sch: namespace prefix on 
> the <schema> element.
> Yet the validation used to be successful.
> Was the old behavior incorrect?
> Maybe I should just stop using schematron.dtd and use the 
> Schematron-validator that Oxygen provides?
> Lars
> _______________________________________________
> oXygen-user mailing list
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user

More information about the oXygen-user mailing list