Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How use number as ID (usable in IDREF)?

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I can tell, the only valid value for xs:ID type is an alphabetic character. Is this correct? Why? Every time I try to use id="1" it tells me that's not a valid type. I believe it can only take an NCName type data which is alphabetic characters. What?! Why would schemas NOT allow numeric IDs? Isn't that 90% of all the IDs everyone uses?
[ March 11, 2003: Message edited by: Dan Bizman ]
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ID only needs to start from a letter, so you can have IDs like K12345, for example. No idea why such a rule :roll:
 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that's my question as wel. How on earth did it ever make sense to someone to say, "hmmm, let's make it so no one can use an integer or long as an ID. Wouldn't that make our schema so much more powerful?"
I don't get it.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is one answer for you
http://bobcat.webappcabaret.net/javachina/faq/09.htm#mis_Q5
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic