Re: Enumerations in schema

> > I'm not a huge expert in XMLSchema, but my understanding is that
> > enumeration values are literal.
>

When I said you were right, I was wrong.  In fact, you are wrong. :)
Sorry for the confusion (but hey, it's XML Schema, confusion is standard).

The XSD "enumeration" element specifies a restriction on the *value
space*,  not the *lexical space.*  This means that yes, it shouldn't
match the exact string literal "xkms:Signature".  Unfortunately, the
way you specify the (err..) value-space value is to uses the lexical
space syntax.  For most things like strings, numbers, etc., this isn't
a problem, for since QName's are a tuple (ns,localname) you have to
use the nsprefix:localname syntax.... ugh.

I got that from sections 3.2.18 and 4.3.5 of part 2 of the Schema
recommendation.

Let's move to URI's. :)
	/r$

--
Rich Salz                  Chief Security Architect
DataPower Technology       http://www.datapower.com
XS40 XML Security Gateway  http://www.datapower.com/products/xs40.html
XML Security Overview      http://www.datapower.com/xmldev/xmlsecurity.html

Received on Tuesday, 6 July 2004 08:10:57 UTC