From f2950befcea5e40d43a59241e5df88ac8f8cb53d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jun 2014 13:46:10 +0200 Subject: Reset element/attribute qualification in imported schemas --- xsd-frontend/parser.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xsd-frontend/parser.cxx b/xsd-frontend/parser.cxx index d0df805..2c090d5 100644 --- a/xsd-frontend/parser.cxx +++ b/xsd-frontend/parser.cxx @@ -2358,9 +2358,13 @@ namespace XSDFrontend if (String af = trim (s["attributeFormDefault"])) qualify_attribute_ = af == L"qualified"; + else + qualify_attribute_ = false; if (String ef = trim (s["elementFormDefault"])) qualify_element_ = ef == L"qualified"; + else + qualify_element_ = false; push (s); @@ -4186,6 +4190,8 @@ namespace XSDFrontend if (String name = trim (a["name"])) { + wcout << name << " " << qualified << endl; + if (trace_) wcout << "attribute '" << name << "'" << endl; -- cgit v1.1