At 2004-02-02 09:57 +0000, james walker wrote:
>I have an xml file whic look s a bit like this
><!DOCTYPE chapter SYSTEM "standarddec.dtd">
>and a dtd which starts like this:
><!ELEMENT chapter (section+)>
><!ELEMENT section (objective | scope | subsection+ | migration-path |
>key-date+ | geographic | tools | support | related_material+ | additional)>
>when validated using MSV i typed "msv standrd.xml" on the comand line
That's the problem.
>the error reported was:
>"start parsing a grammar.
>element "chapter" is not allowed here
>failed to load a grammar.
>does anyone know why chapter isnt allowed here? I dont see any reason why it
Because MSV is expecting the name of a model file first and the document to
be validated second ... you are supplying your XML document as the argument
for the document model and MSV is trying to understand it as a grammar
specification ... which it isn't.
I hope this helps.
Public courses: sign up for one or both soon to reserve your seat!
Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22
Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24
World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:[log in to unmask]
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/l/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/l/bc