I want to use the metalink4.xsd file to validate a metalink file I'm
creating. When I load the schema using lxml.etree.XMLSchema, I get errors
that I interpret (again, newbie) as being due to the fact that the
metalink.xsd has a reference to a local.xsd file that is undefined.

<xsd:import schemaLocation="local.xsd"/>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace";
schemaLocation="xml.xsd"/>

In other words, the validator tries to import this "local.xsd", looks up in
the local directory, finds nothing and reports an error.

So my question is, what is this "local.xsd" file ? Where can I find it or
how do I define it ?

Thanks !


On Wed, Apr 3, 2019 at 4:29 PM Bram Neijt <[email protected]> wrote:

> I don't really understand the question enough, could you maybe give some
> background on the problem you are having?
>
> Greetings,
> Bram
>
> On Thu, Mar 28, 2019 at 10:57 PM David Huard <[email protected]>
> wrote:
>
>> Newbie here,
>>
>> What should be in local.xsd ?
>>
>> XMLSchemaParseError: Element '{
>> http://www.w3.org/2001/XMLSchema}attributeGroup', attribute 'ref': The
>> QName value 'local' does not resolve to a(n) attribute group definition.,
>> line 206
>>
>> Cheers,
>>
>> David
>>
>>
>> On Tuesday, March 2, 2010 at 7:24:47 AM UTC-5, Tatsuhiro Tsujikawa wrote:
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> trang does the job.
>>>
>>> trang metalink4.rnc metalink4.xsd
>>>
>>> trang reported some warnings.
>>>
>>> metalink4.rnc:192:8: warning: cannot represent required wildcard
>>> attribute; approximating
>>> metalink4.rnc:194:5: warning: choice between attributes and children
>>> cannot be represented; approximating
>>> metalink4.rnc:204:4: warning: cannot represent required wildcard
>>> attribute; approximating
>>> metalink4.rnc:212:8: warning: choice between attributes and children
>>> cannot be represented; approximating
>>> metalink4.rnc:219:8: warning: choice between attributes and children
>>> cannot be represented; approximating
>>>
>>> Anthony Bryan wrote:
>>> > we have an XSD for metalink3
>>> >
>>> > http://www.metalinker.org/schema/3.0/metalink.xsd
>>> >
>>> > and a Relax NG compact schema in the ID / metalink4
>>> >
>>> > http://tools.ietf.org/html/draft-bryan-metalink-28#appendix-B
>>> >
>>> > could someone produce XSD for metalink4?
>>> >
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.10 (GNU/Linux)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>>
>>> iEYEARECAAYFAkuNA48ACgkQfoQD1dZzw2YdKQCgsZ52Ay6G1x3qqtnCCYzXGvbt
>>> wIMAnjS3hRptlGpaPZQy4w7lnceIujjl
>>> =F/UW
>>> -----END PGP SIGNATURE-----
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Metalink Discussion" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected]
>> .
>> Visit this group at https://groups.google.com/group/metalink-discussion.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Metalink Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/metalink-discussion.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
David Huard, PhD
Spécialiste Scénarios et services climatiques, Ouranos

-- 
You received this message because you are subscribed to the Google Groups 
"Metalink Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/metalink-discussion.
For more options, visit https://groups.google.com/d/optout.

Reply via email to