From 448760cbdb8f1ee1f3eb3559c7b05e7a61e37a88 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Jan 2010 14:04:58 +0200 Subject: Resolve namespace for default/fixed values of QName type --- tests/dump/driver.cxx | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'tests/dump/driver.cxx') diff --git a/tests/dump/driver.cxx b/tests/dump/driver.cxx index cca6249..d9917d3 100644 --- a/tests/dump/driver.cxx +++ b/tests/dump/driver.cxx @@ -203,6 +203,11 @@ namespace wcout << ind << (a.optional () ? "optional" : "required") << " attribute " << a.name (); + if (a.fixed ()) + wcout << "==" << a.value (); + else if (a.default_ ()) + wcout << "=" << a.value (); + SemanticGraph::Type& t (a.type ()); if (t.named ()) @@ -241,6 +246,11 @@ namespace { wcout << "element " << e.name (); + if (e.fixed ()) + wcout << "==" << e.value (); + else if (e.default_ ()) + wcout << "=" << e.value (); + SemanticGraph::Type& t (e.type ()); if (t.named ()) @@ -268,7 +278,14 @@ namespace wcout << ind << "<" << e.annotation ().documentation () << ">" << endl; - wcout << ind << "element " << e.name () << endl; + wcout << ind << "element " << e.name (); + + if (e.fixed ()) + wcout << "==" << e.value (); + else if (e.default_ ()) + wcout << "=" << e.value (); + + wcout << endl; } }; @@ -343,6 +360,11 @@ namespace wcout << ind << "attribute " << a.name (); + if (a.fixed ()) + wcout << "==" << a.value (); + else if (a.default_ ()) + wcout << "=" << a.value (); + SemanticGraph::Type& t (a.type ()); if (t.named ()) @@ -372,6 +394,11 @@ namespace wcout << ind << "element " << e.name (); + if (e.fixed ()) + wcout << "==" << e.value (); + else if (e.default_ ()) + wcout << "=" << e.value (); + SemanticGraph::Type& t (e.type ()); if (t.named ()) -- cgit v1.1