From lainegates at 163.com Wed Aug 9 09:32:25 2017 From: lainegates at 163.com (lainegates) Date: Wed Aug 9 12:29:04 2017 Subject: [xsd-users] About usage of code synthesis Message-ID: <67b40543.ef24.15dc7324020.Coremail.lainegates@163.com> Dear Editor: I know code synthesis from google, and I think it's a wonderful tool to bind xml schema and c++. when I read the "README", I find a term (1.b) that "You created a library that uses the XSD generated code and the XSD runtime library to access information in XML instance documents. You did not add to the library any other useful code that uses the XSD generated code or the XSD runtime library (neither section 2.b nor 2.c is satisfied).... This scenario does not fall under this FLOSS Exception (neither section 2.b nor 2.c is satisfied). You created the library for the sole purpose of making the XSD generated code and the XSD runtime library available to your proprietary application." Does this term means that (1) If I just compile the code generated by code synthesis to library without any changes (2) I just link the library from step (1) to my application , then I can use the code with BSD license (no charge) and don't need to worry about GPL license ? Yours, sincerely Xiaolong Cheng From boris at codesynthesis.com Fri Aug 11 07:22:02 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Aug 11 07:22:12 2017 Subject: [xsd-users] About usage of code synthesis In-Reply-To: <67b40543.ef24.15dc7324020.Coremail.lainegates@163.com> References: <67b40543.ef24.15dc7324020.Coremail.lainegates@163.com> Message-ID: lainegates writes: > when I read the "README", I find a term (1.b) that "You created a library > that uses the XSD generated code and the XSD runtime library to access > information in XML instance documents. You did not add to the library any > other useful code that uses the XSD generated code or the XSD runtime > library (neither section 2.b nor 2.c is satisfied).... This scenario does > not fall under this FLOSS Exception (neither section 2.b nor 2.c is > satisfied). You created the library for the sole purpose of making the XSD > generated code and the XSD runtime library available to your proprietary > application." > > > Does this term means that > (1) If I just compile the code generated by code synthesis to library > without any changes > (2) I just link the library from step (1) to my application > > , then I can use the code with BSD license (no charge) and don't need > to worry about GPL license ? No, it says exactly opposite: you cannot package the generated code for the sole purpose of relicensing it under a more permissive license. You have to add something useful on top of the generate code to such a library in order to be able to do that. Boris From isharp at atis.org Tue Aug 22 14:00:09 2017 From: isharp at atis.org (Iain Sharp) Date: Tue Aug 22 14:00:23 2017 Subject: [xsd-users] Question on XSD C++/Tree Mapping User Manual Message-ID: In the XSD C++/Tree Mapping User Manual section 5.1 there is a code fragment that begins: " std::auto_ptr r (root ( "root.xml", xml_schema::flags::keep_dom | xml_schema::flags::dont_initialize)); DOMNode* n = root->_node (); assert (n->getNodeType () == DOMNode::ELEMENT_NODE); ...etc..." Should the declaration of n in fact read: DOMNode* n = r ->_node (); ? Regards Iain From boris at codesynthesis.com Wed Aug 23 04:04:46 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Aug 23 04:04:55 2017 Subject: [xsd-users] Question on XSD C++/Tree Mapping User Manual In-Reply-To: References: Message-ID: Iain Sharp writes: > In the XSD C++/Tree Mapping User Manual section 5.1 there is a code fragment that begins: > > " std::auto_ptr r (root ( > "root.xml", > xml_schema::flags::keep_dom | > xml_schema::flags::dont_initialize)); > > DOMNode* n = root->_node (); > assert (n->getNodeType () == DOMNode::ELEMENT_NODE); > ...etc..." > > Should the declaration of n in fact read: > DOMNode* n = r ->_node (); Yes, that's correct. I've fixed this, thanks for the report! Boris From isharp at atis.org Wed Aug 23 04:47:47 2017 From: isharp at atis.org (Iain Sharp) Date: Wed Aug 23 04:48:00 2017 Subject: [xsd-users] Question on XSD C++/Tree Mapping User Manual In-Reply-To: References: Message-ID: Thanks. I actually also noticed another problem in the same document: "2.9.1 Element Types The generation of element types is requested with the --generate-element-map option." I think you mean "...with the --generate-element-type option." Regards Iain Regards Iain -----Original Message----- From: Boris Kolpackov [mailto:boris@codesynthesis.com] Sent: 23 August 2017 09:05 To: Iain Sharp Cc: xsd-users@codesynthesis.com Subject: Re: [xsd-users] Question on XSD C++/Tree Mapping User Manual Iain Sharp writes: > In the XSD C++/Tree Mapping User Manual section 5.1 there is a code fragment that begins: > > " std::auto_ptr r (root ( > "root.xml", > xml_schema::flags::keep_dom | > xml_schema::flags::dont_initialize)); > > DOMNode* n = root->_node (); > assert (n->getNodeType () == DOMNode::ELEMENT_NODE); ...etc..." > > Should the declaration of n in fact read: > DOMNode* n = r ->_node (); Yes, that's correct. I've fixed this, thanks for the report! Boris From boris at codesynthesis.com Wed Aug 23 11:05:14 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Aug 23 11:05:27 2017 Subject: [xsd-users] Question on XSD C++/Tree Mapping User Manual In-Reply-To: References: Message-ID: Iain Sharp writes: > I actually also noticed another problem in the same document: > "2.9.1 Element Types > > The generation of element types is requested with the --generate-element-map option." > > I think you mean "...with the --generate-element-type option." Yes, you are right. Fixed that one as well, thanks! Boris