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

Re: Enumerations in schema

From: tommy lindberg <lindberg_tommy@hotmail.com>
Date: Mon, 05 Jul 2004 18:58:11 +0000
To: rsalz@datapower.com, berin@wingsofhermes.org
Cc: www-xkms@w3.org
Message-ID: <BAY12-F146eYAtmdoxr00008e27@hotmail.com>

Berin, Rich

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

I didn't. :)

It seems to work ok for me; whatever prefix is bound to the XKMS namespace 
must be used for the attributes and elements of type QName.

E.g. if I bind 'km' to the XKMS namespace and used 'xkms' as the prefix for 
a KeyUsage value, this is what Xerces emits:

UndeclaredPrefix: Cannot resolve 'xkms:Signature' as a QName: the prefix 
'xkms' is not declared.
The value 'xkms:Signature' of element 'km:KeyUsage' is not valid.


>From: Rich Salz <rsalz@datapower.com>
>To: Berin Lautenbach <berin@wingsofhermes.org>
>CC: "www-xkms@w3.org" <www-xkms@w3.org>
>Subject: Re: Enumerations in schema
>Date: Mon, 5 Jul 2004 12:29:27 -0400 (EDT)
> > 	<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

FREE pop-up blocking with the new MSN Toolbar  get it now! 
Received on Monday, 5 July 2004 14:58:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:31:42 UTC