mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
Thrift: Finish namespace generation from xsd_namespace command
In .thrift file: xsd_namespace "http://api.facebook.com/v1" Turns up in the xsd output as: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://api.facebook.com/v1" xmlns="http://api.facebook.com/v1" elementFormDefault="qualified"> to properly accommodate our generated xml Thank you, Slee. Reviewed By: mcslee Test Plan: sandbox Revert Plan: revertible Notes: git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0d9199e709
commit
492d223118
@ -112,7 +112,8 @@ void t_xsd_generator::generate_service(t_service* tservice) {
|
||||
|
||||
string ns = program_->get_xsd_namespace();
|
||||
if (ns.size() > 0) {
|
||||
ns = " targetNamespace=\"" + ns + "\" xmlns=\"" + ns + "\"";
|
||||
ns = " targetNamespace=\"" + ns + "\" xmlns=\"" + ns + "\" " +
|
||||
"elementFormDefault=\"qualified\"";
|
||||
}
|
||||
|
||||
// Print the XSD header
|
||||
|
Loading…
Reference in New Issue
Block a user