This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ]
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"...
"tex-mex" being one of the names in the attribute list in want of verification. [ September 20, 2003: Message edited by: Donald R. Cossitt ]
Joined: Jan 23, 2002
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
Joined: Jan 31, 2003
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 ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com