• 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

Invalid type defined...

 
buckaroo
Posts: 401
Postgres Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The above code produces this error in the browser:


Invalid type defined in ATTLIST. Error processing resource 'file:///C:/xml/rml.xml'. Line 21, Position 25
<!ATTLIST Category name ENUMERATED (chinese, japenese, home cooking, tex-mex, contintental, haute cuisine, other)>
------------------------^


I would appreciate if someone could tell me why?
TIA
[ September 20, 2003: Message edited by: Donald R. Cossitt ]
[ September 20, 2003: Message edited by: Donald R. Cossitt ]
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I think the problem is that you're trying to define an attribute called "Category name" while whitespace is not allowed in the name. See the format definition for the ATTLIST at http://www.w3.org/TR/REC-xml#attdecls:
[CODE].
What surprises me however is that the parser didn't complain for the previous line, "Recipe cook"...
 
Donald R. Cossitt
buckaroo
Posts: 401
Postgres Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Category is an element; name is an attribute

"tex-mex" being one of the names in the attribute list in want of verification.
[ September 20, 2003: Message edited by: Donald R. Cossitt ]
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry. My bad. Where did you come up with the ENUMERATED keyword? Would this work for you:

[ September 21, 2003: Message edited by: Lasse Koskela ]
 
Donald R. Cossitt
buckaroo
Posts: 401
Postgres Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The "ENUMERATED" keyword was a suggestion in a manual - go figure
I removed that and replaced the character ',' with '|' in the attribute list along with a closing #IMPLIED and it works fine now. Thanks for the heads up
[ September 21, 2003: Message edited by: Donald R. Cossitt ]
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic