• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Legal attrubute value for ID type in a DTD?  RSS feed

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to Wrox Professional XML the following is legal for an attribute of type ID :
<PERSON SSN="111-22-3333" />
Yet my understanding is that this ID type is that is restricted to values that are legal xml names, and therefore 'SSN' could not possibly start with the digit '1' as pro xml has stated in the above example.
Even when I tried it out - it failed to validate. I thought only NMTOKEN & NMTOKENS was free of the first character restriction on xml names.
Am I missing something here??
Andles
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. Where is it in the book?
 
Andles Jurgen
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chapter 3 (DTD's), page 86 - first code sample at the top of page.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which edition? I use the second edition.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!