Issue with XSD files (tool v8.3.0) [message #1857967] |
Wed, 08 March 2023 17:20 |
Carlos Arroyo 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04067 seconds