Local version of schema definition for validation

Wessel, Keith kwessel at illinois.edu
Tue Jul 19 13:20:45 EDT 2016


Fantastic, Ian! It could not have been a small task to get the ordering of those xsd resources down correctly.

We're up and running with schema validation.

Thanks again,
Keith


-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Ian Young
Sent: Tuesday, July 19, 2016 10:41 AM
To: Shib Users <users at shibboleth.net>
Subject: Re: Local version of schema definition for validation


> On 19 Jul 2016, at 16:34, Wessel, Keith <kwessel at illinois.edu> wrote:
> 
> When I point MDA to saml-schema-metadata-2.0.xsd directly, it complains that xmldsig-core-schema is unreadable or doesn't have an xsd:schema element at its root. In fact, it has <schema...> at its root. Missing the xsd: tag, but so is saml-schema-metadata-2.0.xsd, and that doesn't seem to be causing a problem with it.

This is a pretty unhelpful error message from the XSD parser, it's true. It's actually to do with not being able to reference external documents at all in that context. The way to work round that is to reorder the accesses so that the namespaces are defined before they are referenced.

This is what we use in the UKf tooling:

https://github.com/ukf/ukf-meta/blob/master/mdx/common-beans.xml#L933

Hope that helps,

    -- Ian






More information about the users mailing list