Having elements with a remote schemaLocationis not supported since the program expects all files to be local.
Example:
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
Logic building the import paths:
|
i.ImportedSchema, err = ws.loadXsd(filepath.Join(baseDir, i.SchemaLocation), false) |
|
i.IncludedSchema, err = ws.loadXsd(filepath.Join(baseDir, i.SchemaLocation), true) |
If the schemaLocation has a protocol prefix, it should try to use that to resolve the file.
Having elements with a remote
schemaLocationis not supported since the program expects all files to be local.Example:
Logic building the import paths:
xsd2go/pkg/xsd/schema.go
Line 355 in b35270f
xsd2go/pkg/xsd/schema.go
Line 369 in b35270f
If the
schemaLocationhas a protocol prefix, it should try to use that to resolve the file.