From 42a1a37f11ee65e6af59bba06b8175040f800ccc Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Tue, 15 Jan 2002 16:41:25 +0000 Subject: updates. --- cpp/src/slice2xsd/Gen.cpp | 17 ++++++++++++++++- cpp/src/slice2xsd/ice.xsd | 8 ++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/slice2xsd/Gen.cpp b/cpp/src/slice2xsd/Gen.cpp index 145672c1a1c..79161fa1d8b 100644 --- a/cpp/src/slice2xsd/Gen.cpp +++ b/cpp/src/slice2xsd/Gen.cpp @@ -450,7 +450,8 @@ Slice::Gen::visitDictionary(const DictionaryPtr& p) end(); // xs:appinfo - O << nl << "name() << "ContentType\"/>"; + O << nl << "name() << "ContentType\"" + << " minOccurs=\"0\" maxOccurs=\"unbounded\"/>"; end(); // xs:sequence end(); // xs:complexType @@ -609,5 +610,19 @@ Slice::Gen::toString(const SyntaxTreeBasePtr& p) s = "tns:" + internalId + scopeId + en->name() + "Type"; } + SequencePtr sq = SequencePtr::dynamicCast(p); + if (sq) + { + string scopeId = containedToId(sq); + s = "tns:" + internalId + scopeId + sq->name() + "Type"; + } + + DictionaryPtr di = DictionaryPtr::dynamicCast(p); + if (di) + { + string scopeId = containedToId(di); + s = "tns:" + internalId + scopeId + di->name() + "Type"; + } + return s; } diff --git a/cpp/src/slice2xsd/ice.xsd b/cpp/src/slice2xsd/ice.xsd index 382d2a2368c..4e4112cda06 100644 --- a/cpp/src/slice2xsd/ice.xsd +++ b/cpp/src/slice2xsd/ice.xsd @@ -58,4 +58,12 @@ All Rights Reserved + + + + + + + + -- cgit v1.2.3