Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Issue with XSD files (tool v8.3.0)(Import of ttcn module "http_www_w3_org_XML_1998_namespace" (as according to the import statement in the included xsd file RFC4479_common_schema) is missing in the output of tool xsd2ttcn)
Issue with XSD files (tool v8.3.0) [message #1857967] Wed, 08 March 2023 17:20 Go to next message
Carlos Arroyo is currently offline Carlos ArroyoFriend
Messages: 12
Registered: June 2020
Junior Member
Dear all,

Please find the explanation of an issue with XSD files used in a TTCN project.

RFC4479_pidf_data_model.xsd includes RFC4479_common_schema.xsd so in TTCN there is only one module to be imported what can be tested with a test module.

We have created a ttcn module "urn_ietf_params_xml_ns_pidf_data_model.ttcn" with tool xsd2ttcn.exe (v8.3.0) in which the import statement corresponding to
<xs:import namespace=http://www.w3.org/XML/1998/namespace schemaLocation="../../Common/IMS_XSD/xml.xsd"/>
has been missing
=> if we add line
import from http_www_w3_org_XML_1998_namespace all;
then it works fine.

- Why the import statement is missing (or not considered) in this case ?
- Could you please try the attached ATS or generate yourself the mentioned module and compare the ttcn files and give me some feedback ?
The file we generate is done with command -> "C:\Program Files\Titan\8.3.0 Cygwin\xsd2ttcn.exe" -e RFC4479_pidf_data_model.xsd RFC4479_common_schema.xsd xml.xsd

So far, we found a workaround which seems to work:
we replaced the include statement in RFC4479_pidf_data_model.xsd with the content of the XML schema of RFC4479_common_schema.xsd itself (see .zips attached)


I am attaching the following:

- One ATS showing the issue when analyzed with the TTCN3 tool --> "IMS_WLAN_IWD_23wk10.zip"
In the ATS, the mentioned xsd files are in folder,
../Common/IMS_XSD
- the resulting ttcn files from xsd2ttcn tool. The only difference between them is that in the 'noPatch' variant the import of http_www_w3_org_XML_1998_namespace is missing --> "urn_ietf_params_xml_ns_pidf_data_model.zip"
- separate zip files, just for convenience, with the mentioned XSD files
Original XSDs --> "Original XSDs.zip" with following files included
"RFC4479_common_schema.xsd"
"RFC4479_pidf_data_model.xsd"
"xml.xsd"
Patched XSD --> file "RFC4479_pidf_data_model_with_common_schema.zip" including file
"RFC4479_pidf_data_model_with_common_schema.xsd"


Summarizing, as the issue seems to be that the import of http_www_w3_org_XML_1998_namespace (as according to the import statement in the included RFC4479_common_schema.xsd) is missing, or just not considered, and changing the XSDs is not desirable as long term solution, do you think it can be handled with an update in the tool or do you find an issue with ES 201 873-9 ?




Best regards,
Carlos


--------------------------------------------
Carlos Arroyo
MCC TF160 Expert
Re: Issue with XSD files (tool v8.3.0) [message #1857983 is a reply to message #1857967] Thu, 09 March 2023 11:22 Go to previous messageGo to next message
Adam Knapp is currently offline Adam KnappFriend
Messages: 54
Registered: November 2020
Member
Hi Carlos,

It seems it is a bug in the xsdconvert/csd2ttcn tool. It should be fixed now. You can find the details in the related ticket: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues/692
Could you please verify whether it works as expected?
Re: Issue with XSD files (tool v8.3.0) [message #1859244 is a reply to message #1857983] Mon, 22 May 2023 10:15 Go to previous message
Carlos Arroyo is currently offline Carlos ArroyoFriend
Messages: 12
Registered: June 2020
Junior Member
Hi Adam,

Sorry for the late reply. Yes, I can confirm the tool works as expected.

Thanks a lot,
Carlos
Previous Topic:Ethernet
Next Topic:Fields declared after extension (...) are not set as optional
Goto Forum:
  


Current Time: Thu Oct 10 01:50:10 GMT 2024

Powered by FUDForum. Page generated in 0.04067 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top