Commit 6ec5835a authored by gerd's avatar gerd

Commenting out the root element check.


git-svn-id: https://godirepo.camlcity.org/svn/lib-pxp/trunk@713 dbe99aee-44db-0310-b2b3-d33182c8eb97
parent 66a60808
......@@ -683,8 +683,11 @@ class dtd ?swarner the_warner init_encoding =
el # validate)
elements;
(* Check the root element: *)
(* TODO: Check if this piece of code is executed at all! *)
(* Check the root element: This check is commented out because:
* - it is performed anyway when the root element is validated
* - it does not work in namespace mode (missing ns normalization)
*)
(* --
begin match root with
None -> ()
| Some r ->
......@@ -695,6 +698,7 @@ class dtd ?swarner the_warner init_encoding =
raise(Validation_error("The root element is not declared"))
end
end;
--*)
validated <- true;
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment