Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xs:dateTime type not supported #19

Open
neeleym opened this issue Mar 15, 2018 · 4 comments
Open

xs:dateTime type not supported #19

neeleym opened this issue Mar 15, 2018 · 4 comments

Comments

@neeleym
Copy link

neeleym commented Mar 15, 2018

See the following xsd file:
https://www.omg.org/spec/DDS-SECURITY/20170901/omg_shared_ca_permissions.xsd

Generation of C++ errors out when hitting the xs:dateTime type.

@jwillemsen
Copy link
Member

What errors do you get exactly?

@neeleym
Copy link
Author

neeleym commented Mar 15, 2018

See below:

./xsc --backend cxx omg_shared_ca_permissions.xsd 
unable to resolve name `dateTime' inside namespace `http://www.w3.org/2001/XMLSchema'
unable to resolve name `dateTime' inside namespace `http://www.w3.org/2001/XMLSchema'
Parsing encountered an error.

@jwillemsen
Copy link
Member

jwillemsen commented Mar 15, 2018

Last month I regenerated the regular xsd files, see the mpc file which option I used, very likely you need to extend XSC, can’t find a reference to dateTime in the current code

@jwillemsen
Copy link
Member

jwillemsen commented Mar 19, 2018

You could make it a xs:string for the moment, that would at least make it possible to generate the necessary code. I used as generation command:

./XSC/bin/xsc --backend cxx --cxx-char-type ACE_TCHAR --cxx-generate-writer-types --cxx-banner-file ../../../docs/schema/xsc-banner.cpp --cxx-header-banner-file ../../../docs/schema/xsc-banner.h --cxx-export-symbol XML_QOS_Handler_Export --cxx-export-header XML_QOS_Handler_Export.h --search-path "../../../docs/schema" omg_shared_ca_permissions.xsd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants