Re: Question: Enumerations in schema

Thanks Norm.  We were planning to move to URIs for element or attribute content and your advice concurs.  It is nice to note that there exists a normative document for the same [1]
 
[1] http://www.w3.org/2001/tag/doc/qnameids.html
 
Thanks and Regards
 
/Shivaram



Norman Walsh <Norman.Walsh@Sun.COM> wrote:
/ Shivaram Mysore was heard to say:
| Thanks Norm.
|
| Even I thought that the prefixes did not play that an important role. See the following that is part of WSS:
|
| http://lists.oasis-open.org/archives/wss/200402/msg00011.html
|
| This is the problem that folks land up in:
| whatever prefix is bound to the XKMS namespace 
| must be used for the attributes and elements of type QName.

Yes, that's a good thing.

| 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.

Oh, right. That's just the way namespaces work. I *thought* the problem was
that xkms:Signature was required even when km: was bound and xkms: wasn't.
That would be wrong.

You were hoping that "xkms:Signature" would work even when xmks:
wasn't bound? Nope. Can't do that. And shouldn't.

| As per this:
| http://lists.w3.org/Archives/Public/www-xkms/2004Jul/0020.html

Moving to URIs would be better. QNames in element or attribute content
are evil, pure and simple, from the eight dimension.[1]

Be seeing you,
norm

[1] http://www.w3.org/2001/tag/doc/qnameids.html

-- 
Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.


> ATTACHMENT part 2 application/pgp-signature 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Received on Friday, 13 August 2004 17:07:04 UTC