(very new to XML) Relative SystemLiteral does not seem to work

K

Kiwi

Hello.

I have a silly XML file and a silly DTD called http://foo/bar/a.xml
and http://foo/bar/a.dtd respectively. They can be validated with
http://validator.w3.org/.

a.xml is as below.
<!DOCTYPE a SYSTEM "http://foo/bar/a.dtd">
<a/>

a.dtd is as below.
<!ELEMENT a EMPTY>

But when I modified "http://foo/bar/a.dtd" to "a.dtd" and validated
them again, I was told 'Fatal Error: cannot find "a.dtd"; tried.'

I think I just used relative URI instead of absolute one where
SystemLiteral was expected. What was wrong?

Thank you.
 
B

Bob Foster

Did you upload the file? If so, it doesn't know the document base. If not,
don't know. The relative URI should be fine.

Bob Foster
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top