• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How use number as ID (usable in IDREF)?

 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is one answer for you
http://bobcat.webappcabaret.net/javachina/faq/09.htm#mis_Q5
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic