diff options
author | Matthew Newhook <matthew@zeroc.com> | 2002-01-25 14:48:39 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2002-01-25 14:48:39 +0000 |
commit | 8d2ec3bcb23c04c3899a2516cb05a699b0db393a (patch) | |
tree | 133eba1ae126c1f405f9627cceadbcacf05ce59f /cpp/src/slice2xsd/Gen.cpp | |
parent | fixes (diff) | |
download | ice-8d2ec3bcb23c04c3899a2516cb05a699b0db393a.tar.bz2 ice-8d2ec3bcb23c04c3899a2516cb05a699b0db393a.tar.xz ice-8d2ec3bcb23c04c3899a2516cb05a699b0db393a.zip |
Initial version of slice2wsdl.
Diffstat (limited to 'cpp/src/slice2xsd/Gen.cpp')
-rw-r--r-- | cpp/src/slice2xsd/Gen.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/cpp/src/slice2xsd/Gen.cpp b/cpp/src/slice2xsd/Gen.cpp index e12809989be..0f651884b71 100644 --- a/cpp/src/slice2xsd/Gen.cpp +++ b/cpp/src/slice2xsd/Gen.cpp @@ -72,12 +72,6 @@ Slice::Gen::generate(const UnitPtr& unit) unit->mergeModules(); // - // I don't want the top-level module to be sorted, therefore no - // unit->sort() before or after the unit->sortContents(). - // - //unit->sortContents(); - - // // TODO: It would be better if start() aligned the attributes // correctly. // @@ -85,17 +79,13 @@ Slice::Gen::generate(const UnitPtr& unit) os << "xs:schema" << " xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"" << "\n elementFormDefault=\"qualified\"" - << "\n xmlns:ice=\"http://www.mutablerealms.com\"" - << "\n xmlns:tns=\"" - << _orgName - << "\"" - << "\n targetNamespace=\"" - << _orgName - << "\""; + << "\n xmlns:ice=\"http://www.mutablerealms.com/schemas\"" + << "\n xmlns:tns=\"" << _orgName << "/schemas\"" + << "\n targetNamespace=\"" << _orgName << "/schemas\""; start(os.str()); // TODO: schemaLocation? - O << nl << "<xs:import namespace=\"http://www.mutablerealms.com\" schemaLocation=\"ice.xsd\"/>"; + O << nl << "<xs:import namespace=\"http://www.mutablerealms.com/schemas\" schemaLocation=\"ice.xsd\"/>"; StringList includes = unit->includeFiles(); for (StringList::const_iterator q = includes.begin(); q != includes.end(); ++q) @@ -493,8 +483,6 @@ Slice::Gen::visitDictionary(const DictionaryPtr& p) << internalId << scopeId << p->name() << "Type\"/>"; } -/* sequence, dictionary */ - void Slice::Gen::printHeader() { |