xml validation: validating a URI type 
I'm using python's lxml to validate xmls against a schema. I have a schema with an element:

    <xs:element name="link-url" type="xs:anyURL"/>
and I test, for example, this (part of an) xml:

    <a link-url="server/path"/>
I would like this test to FAIL because the `link-url` doesn't start with `http://`. 

Is this possible with lxml? is it possible at all with schema validation?

 
xml validation: validating a URI type 
===

I'm using python's lxml to validate xmls against a schema. I have a schema with an element:

    <xs:element name="link-url" type="xs:anyURL"/>
and I test, for example, this (part of an) xml:

    <a link-url="server/path"/>
I would like this test to FAIL because the `link-url` doesn't start with `http://`. 

Is this possible with lxml? is it possible at all with schema validation?

 