Re: [saml-dev] Constrain existing ID attributes?

From
Eve L. Maler <>
Date
2003-04-15T17:47:58+00:00
ID
Thread
Re: [saml-dev] Constrain existing ID attributes?
Scott Cantor wrote:
>>Couple questions that may help us (and others) respond:
>>
>>1) I believe xsd:ID is free form but its char set is more 
>>restricted than xsd:string?  How much more restricted is it?  
>>(I know I could look this up!)
> 
> 
> It's defined as a Name production in XML, I think. One obvious difference is that IDs can't start with a number.

Yep, roughly correct.  xsd:ID is defined as an NCName (non-'colonized' 
name), which the Namespaces in XML spec defines thusly:

[4] 	NCName 	 ::= 	(Letter | '_') (NCNameChar)*	 /* 	An XML Name, minus 
the ":" */
[5] 	NCNameChar 	::= 	Letter | Digit | '.' | '-' | '_' | CombiningChar | 
Extender

http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName


	Eve
-- 
Eve Maler                                        +1 781 442 3190
Sun Microsystems                            cell +1 781 354 9441
Web Technologies and Standards               eve.maler @ sun.com