diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-03 09:26:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-03 09:26:29 +0200 |
commit | 832c50f871350ffb42a42dca86946c61a264969d (patch) | |
tree | b35ccf67db75cf31fa00575eaba3575ef85ad1b9 /xsd-frontend | |
parent | 6bddcb720fd428202eb046f4e2648ac4630a8082 (diff) |
Ignore empty import directives
Diffstat (limited to 'xsd-frontend')
-rw-r--r-- | xsd-frontend/parser.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xsd-frontend/parser.cxx b/xsd-frontend/parser.cxx index 62a7322..d93348d 100644 --- a/xsd-frontend/parser.cxx +++ b/xsd-frontend/parser.cxx @@ -2089,6 +2089,11 @@ namespace XSDFrontend if (loc_translator_) loc = loc_translator_->translate (loc); + // Ignore empty <import>. + // + if (!loc && !i["namespace"]) + return; + Path path, rel_path, abs_path; try { @@ -4327,7 +4332,7 @@ namespace XSDFrontend //@@ How can I get the line/column numbers for this? // wcerr << ctx_.file (base) << ": error: " - << "unable to guess which resource to open" + << "unable to guess which schema to open" << endl; wcerr << ctx_.file (base) << ": info: " |