[
https://issues.apache.org/jira/browse/THRIFT-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091329#comment-15091329
]
Benjamin Gould commented on THRIFT-3523:
----------------------------------------
Hi Jens, thanks for committing. To answer your question, I've not been using
the XSD generator, I've been creating XSD from the new XML generator by using
an XSL transform.
I'm attaching a zip with the transforms that might be more illustrative of what
I mean. The output of the transforms is in the gen-xml/ folder of the zip
file. The transforms themselves and the commands to run them are in the top
level folder. There are known issues such as not properly handling parent
services and not really respecting "requiredness" properly. However it should
give you an idea of where I am going with it.
> XML Generator
> -------------
>
> Key: THRIFT-3523
> URL: https://issues.apache.org/jira/browse/THRIFT-3523
> Project: Thrift
> Issue Type: New Feature
> Components: XML/XSD - Compiler
> Reporter: Benjamin Gould
> Assignee: Benjamin Gould
> Priority: Minor
> Fix For: 1.0
>
>
> I've put together an XML model for Thrift IDL that is very similar in concept
> and structure to the model created by the JSON generator of the Thrift
> compiler. The code is based on the JSON generator, and inherits the 'merge'
> option from that module for including the model of all includes in a single
> file if desired.
> This generator is useful if you wish to extend the Thrift compiler with some
> XML based templating engine such as XSLT. For example I have prototyped
> transforms that can create valid XML schema and WSDL files from Thrift IDL,
> as well as transform SOAP requests and responses to and from Thrift messages.
> Those transforms are not included because they may be outside the scope of
> Thrift, but I can provide them if interested. Regardless, I feel the XML
> model is generally useful and might be a good addition to the Thrift compiler.
> Also included is an XML schema for the model file format and tests that
> generate XML from existing IDL in the Thrift test suite to validate against
> that schema. These tests are Ant based and so only run when --with-java is
> enabled in ./configure
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)