Thrift: Small changes to support XSD generation

xs:restriction -> xsd:restriction
minoccurs -> minOccurs

Reviewed By: marc

Test Plan: sandbox

Revert Plan: revertible

Notes:


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664957 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_xsd_generator.cc b/compiler/cpp/src/generate/t_xsd_generator.cc
index a2a6c43..d07be91 100644
--- a/compiler/cpp/src/generate/t_xsd_generator.cc
+++ b/compiler/cpp/src/generate/t_xsd_generator.cc
@@ -27,7 +27,7 @@
     "<xsd:simpleType name=\"" << ttypedef->get_name() << "\">" << endl;
   indent_up();
   indent(s_xsd_types_) <<
-    "<xs:restriction base=\"" << type_name(ttypedef->get_type()) << "\" />" << endl;
+    "<xsd:restriction base=\"" << type_name(ttypedef->get_type()) << "\" />" << endl;
   indent_down();
   indent(s_xsd_types_) <<
     "</xsd:simpleType>" << endl << endl;
@@ -67,7 +67,7 @@
                                        string name,
                                        t_type* ttype,
                                        bool optional) {
-  string soptional = optional ? " minoccurs=\"0\" maxOccurs=\"1\"" : "";
+  string soptional = optional ? " minOccurs=\"0\" maxOccurs=\"1\"" : "";
 
   if (ttype->is_void() || ttype->is_list()) {
     indent(out) <<