From f6b55dda1651ffd5221663ea4a642b6c1d49527f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Feb 2010 14:55:56 +0200 Subject: Treat list item type as base type in schema per file logic --- xsd-frontend/transformations/schema-per-type.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'xsd-frontend/transformations') diff --git a/xsd-frontend/transformations/schema-per-type.cxx b/xsd-frontend/transformations/schema-per-type.cxx index 547cdf0..1ceb73b 100644 --- a/xsd-frontend/transformations/schema-per-type.cxx +++ b/xsd-frontend/transformations/schema-per-type.cxx @@ -224,14 +224,11 @@ namespace XSDFrontend virtual Void traverse (SemanticGraph::List& l) { + // Treat item type as base type since it is impossible + // to create recursive constructs using list. + // SemanticGraph::Type& t (l.argumented ().type ()); - - Boolean weak ( - by_value_key_ == 0 || - !t.context ().count (by_value_key_) || - !t.context ().get (by_value_key_)); - - set_dep (t, weak); + set_dep (t, false); } virtual Void -- cgit v1.1