XML attributes with defaults

Ian Young ian at iay.org.uk
Sun Jul 7 13:14:57 EDT 2013


On 7 Jul 2013, at 15:52, Tom Scavo <trscavo at gmail.com> wrote:

> Suppose an XML schema contains an XML attribute with a default. Can
> someone give an example of an xmlsectool command that gives an error
> if an XML document that satisfies the schema does not contain an
> explicit value for that XML attribute?

I'm not sure if you can demonstrate the classic issue using just xmlsectool, due to the way it handles schemas.  But if you wanted to try, you could:

* sign a document (one where the attribute is absent) WITH schema validation, then try and verify it WITHOUT, or

* sign a document WITHOUT schema validation, then try and verify it WITH

	-- Ian



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4813 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/dev/attachments/20130707/51c174ee/attachment.bin 


More information about the dev mailing list