Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
7f31e42e
Commit
7f31e42e
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2005-03-06 16:53:49 by afrisch] Don't import already imported schema
Original author: afrisch Date: 2005-03-06 16:53:49+00:00
parent
6d0d29fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema/schema_parser.ml
View file @
7f31e42e
...
...
@@ -198,6 +198,7 @@ let schema_of_uri uri =
in
let
todo
=
ref
[]
in
let
imported_ns
=
ref
[]
in
let
rec
parse_uri
uri
=
let
root
=
node_of_uri
uri
in
...
...
@@ -623,7 +624,12 @@ let schema_of_uri uri =
(* end of parse_root *)
in
parse_root
uri
root
;
if
List
.
exists
(
Ns
.
equal
targetNamespace
)
!
imported_ns
then
print_endline
"(already imported)"
else
(
imported_ns
:=
targetNamespace
::
!
imported_ns
;
parse_root
uri
root
);
targetNamespace
(* end of parse_uri *)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment