W3C home > Mailing lists > Public > www-xkms@w3.org > July 2004

Re: Enumerations in schema

From: Rich Salz <rsalz@datapower.com>
Date: Mon, 5 Jul 2004 12:29:27 -0400 (EDT)
To: Berin Lautenbach <berin@wingsofhermes.org>
Cc: "www-xkms@w3.org" <www-xkms@w3.org>
Message-ID: <Pine.LNX.4.44L0.0407051223160.17481-100000@smtp.datapower.com>

> 	<simpleType name="KeyUsageType">
> 		<restriction base="QName">
> 			<enumeration value="xkms:Encryption"/>
> 			<enumeration value="xkms:Signature"/>
> 			<enumeration value="xkms:Exchange"/>
> 		</restriction>
> 	</simpleType>
>
> I'm not a huge expert in XMLSchema, but my understanding is that
> enumeration values are literal.

You are correct.

Bummer. :)

I guess everyone tested using 'xkms' as the NS prefix.

I *hate* qname's as attribute values.  It is very late to change them to
URI's, although I know what WS-Security did it at last-call stage. WE
could then use Gudge's "open enumeration" technique to list the URI's that
are pre-defined by the standard.


*Something* has to be fixsed, either the schema enumeration values
removed, or QNAME->URI.  I vote for the second choice.

	/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 Monday, 5 July 2004 12:29:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:39:22 GMT