Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 07:10 AM
Kiwi
Guest
 
Posts: n/a
Default (very new to XML) Relative SystemLiteral does not seem to work

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.
  #2  
Old July 20th, 2005, 07:10 AM
Bob Foster
Guest
 
Posts: n/a
Default Re: (very new to XML) Relative SystemLiteral does not seem to work

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

"Kiwi" <kiwi@s05.itscom.net> wrote in message
news:dc95c98e.0309150024.1cf3c51b@posting.google.c om...[color=blue]
> 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.[/color]


  #3  
Old July 20th, 2005, 07:11 AM
Logomachist
Guest
 
Posts: n/a
Default Re: (very new to XML) Relative SystemLiteral does not seem to work

Kiwi wrote:
[color=blue]
>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/.
>[/color]
These files are at http://foo ?
There's no such thing as http://foo - if there was foo would be a top
level domain, and it's not. Unless there's some server trick here I'm
missing?

- Rob

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles