[ 
https://issues.apache.org/jira/browse/THRIFT-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15005401#comment-15005401
 ] 

Hudson commented on THRIFT-3417:
--------------------------------

SUCCESS: Integrated in Thrift #1725 (See 
[https://builds.apache.org/job/Thrift/1725/])
THRIFT-3417: "namespace xsd" is not really working Client: XSD Patch: (jensg: 
rev cc193c1becb78b75fbbb178a6e2e0e5aaa0f5b24)
* test/ThriftTest.thrift
* compiler/cpp/src/thrifty.yy
* compiler/cpp/src/parse/t_program.h
* compiler/cpp/src/generate/t_xsd_generator.cc


> "namespace xsd" is not really working
> -------------------------------------
>
>                 Key: THRIFT-3417
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3417
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (General)
>            Reporter: Jens Geyer
>            Assignee: Benjamin Gould
>             Fix For: 1.0
>
>
> The {{namespace xsd}} statement can be used to put namespace declarations 
> into the xsd. So far, so expected,. What makes it a problem is the fact, that 
> normal languages need an identifier here. In that regard, XSD is different, 
> because this should be possible to do this:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" ?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> targetNamespace="http://example.com"; xmlns="http://example.com"; 
> elementFormDefault="qualified">
>     <!-- ... stuff ... -->
> </xsd:schema>
> {code}
> However, there is no way to express this in the IDL. The foillowing leads to 
> an syntax error, because the value is expected to be an identifier even for 
> xsd. 
> {code:title=example.thrift}
> namespace xsd "http://example.com";
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to