|
Re: xsd2ttcn issue [message #1783797 is a reply to message #1783794] |
Sun, 18 March 2018 07:21 |
|
Hi Yann,
let me start with #2: you can safely remove the weird variants , they are some parasitic artifacts:
type record of enumerated
{
device,
lis,
other
} SourceType
with {
// variant ([-]) ;
// variant ([-]) ;
// variant ([-]) ;
variant "name as uncapitalized";
variant "list";
};
I have verified the encoding and it looks correct, e.g.
var Source v_Source:= {lis, device, lis, other, device, device, lis}
is encoded as:
"<lmsrc:source xmlns:lmsrc='urn:ietf:params:xml:ns:pidf:geopriv10:lmsrc'>lis device lis other device device lis</lmsrc:source>\n\n"
see also http://www.rfc-editor.org/rfc/rfc7105.txt
Now, #1.
The converter cannot follow links or hyperlinks, all XSD's have to be present and located in the same directory. This means that import links and hyperlinks will have to be replaced with a direct local reference.
So in pemea.xsd
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation= "http://www.w3.org/2001/xml.xsd" />
has to be replaced with
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation= "xml.xsd" />
This will solve your first issue.
I have attached the generated (and corrected files), see package1.tgz.
Now, the second issue is somewhat more complicated.
wifi.xsd tries to import the gml namespace:
<xs:import namespace="http://www.opengis.net/gml"/>
but , as there is no .xsd file present with that namespace, a warning is thrown.
Now as no definition from that namespace is being referred to, this is just a warning,
not an error, and the TTCN-3 files will be generated.
There are two options here:
if you don't need gml ( https://en.wikipedia.org/wiki/Geography_Markup_Language ) then you can continue with the package1 I have uploaded.
If you do need gml , then, as there are several variants, you have to decide which variant you want to use and add the schemas for that variant to the conversion.
See all the variants here http://schemas.opengis.net/gml/
I hope this helps
Best regards
Elemer
-
Attachment: package1.tgz
(Size: 17.01KB, Downloaded 77 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03393 seconds