validating shib conf files using python
Cantor, Scott
cantor.2 at osu.edu
Thu Jul 10 12:33:13 EDT 2014
On 7/10/14, 10:57 AM, "Liam Hoekenga" <liamr at umich.edu> wrote:
>
>I've got a element that does not conform to the schema (on purpose)..
><resolver:AttributeDefinition xsi:type="Simple" id="uid"
>sourceAttributeID="uid"> ... </resolver:AttributeDefinition>
>And when I check my document with assertValid (lxml.etree.XMLschema), I
>get an error like this... (u"Element
>'{urn:mace:shibboleth:2.0:resolver}AttributeDefinition', attribute
>'{http://www.w3.org/2001/XMLSchema-instance}type':
> The QName value 'Simple' of the xsi:type attribute does not resolve to a
>type definition., line 1",)
>Is it possible obtain more information from the exception?I'd really like
>to be able to print the "id" attribute from the broken element.
I think you will find that be very unlikely bordering on impossible. I've
never seen a validator report anything that context-aware.
-- Scott
More information about the users
mailing list