LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: DTD ERRORS
From: james walker <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Fri, 30 Jan 2004 14:45:02 +0000
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (92 lines)


Hello,
Imanaged to validate the dtd now, i tried validating an xml document against
it and the parser produced this below
"
java -jar msv.jar standarddec.dtd standard.xml
start parsing a grammar.
validating standard.xml
Exception in thread "main" java.net.MalformedURLException: no protocol:
standard
dec.dtd
        at java.net.URL.<init>(URL.java:537)
        at java.net.URL.<init>(URL.java:434)
        at java.net.URL.<init>(URL.java:383)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source
)
        at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Sourc
e)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
com.sun.msv.driver.textui.Driver$SimpleVerifier.verify(Driver.java:41
0)
        at com.sun.msv.driver.textui.Driver.run(Driver.java:274)
        at com.sun.msv.driver.textui.Driver.main(Driver.java:66)

"
i put this at the start of the xml file:
<?xml version="1.0"?>
<!DOCTYPE chapter SYSTEM "standarddec.dtd">


>From: "G. Ken Holman" <[log in to unmask]>
>Reply-To: General discussion of Extensible Markup Language
><[log in to unmask]>
>To: [log in to unmask]
>Subject: Re: DTD ERRORS
>Date: Fri, 30 Jan 2004 08:56:40 -0500
>
>At 2004-01-30 13:37 +0000, james walker wrote:
>><!ELEMENT definition (#PCDATA | list)*>
>><!ELEMENT list (list-item)>
>><!ELEMENT list-item (#PCDATA, list*)>
>>...
>>"mixed content model for "list-item must end with ">*" and
>>not ","",?
>
>Note how your declarations using #PCDATA differ above?  XML only allows the
>form that you've used for definition, XML does not allow #PCDATA to be used
>in a sequence.
>
>Perhaps you want the same as definition:
>
>   <!ELEMENT list-item (#PCDATA | list)*>
>
>Also, on line 14:
>
>><!ELEMENT table (#CDATA)>
>
>You are missing "P" .. I suspect you wanted "(#PCDATA)".
>
>I hope this helps.
>
>....................... Ken
>
>
>--
>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

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager