This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid type defined...

 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • 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 ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • 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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic