aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-03 09:26:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-03 09:26:29 +0200
commit832c50f871350ffb42a42dca86946c61a264969d (patch)
treeb35ccf67db75cf31fa00575eaba3575ef85ad1b9
parent6bddcb720fd428202eb046f4e2648ac4630a8082 (diff)
Ignore empty import directives
-rw-r--r--xsd-frontend/parser.cxx7
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: "