[oXygen-user] html does not allow namespace declaration on the root element
Radu Coravu
Thu Jul 3 01:11:31 CDT 2008
Dear Barry,
Because the HTML does not have an XML schema location reference Oxygen
validates it by default with the XHTML Strict DTD that John
told you about in the other mail.
The validation is done according to the XHTML document type located in
the Oxygen Preferences -> Document Type Association page.
The XHTML Strict DTD simply does not have in its grammar a definition
for an attribute named xmlns:xsd.
There are 2 solutions to this:
1) Refer to the XHTML 1.1 XML Schema in the file. You can use Oxygen,
select "New", Choose "From templates" and find the XHTML 1.1 Schema
based template.
2) Modify the XHTML Document Type from the Oxygen preferences and in the
Schema tab choose XML Schema as a schema type and set
"${frameworks}/xhtml11/schema/xhtml11.xsd"
in the Schema URI field.
Regards,
Radu
--
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
mozer wrote:
> Dear,
>
> with the following file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.w3.org/1999/xhtml"></html>
>
> I have the following error
>
> E [Xerces] Attribute "xmlns:xsd" must be declared for element type "html".
>
> Can you explain me how to workaround this ?
>
> Regards,
>
> Xmlizer
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
More information about the oXygen-user
mailing list