Using system variable in dtd declaration in an xml file

E

ezmiller

I tried the following but it did not work:

<!DOCTYPE article SYSTEM "%XMLNOTESPROJECT%/article_notes.dtd">

where XMLNOTESPROJECT is a system variable with the path of the dtd
file.

Why does this not work?

This is the response I get when trying to view the xml file in
iexplorer:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The system cannot locate the resource specified. Error processing
resource '%XMLNOTESPROJECT%article_notes.dtd'. Error pro...

<!DOCTYPE article SYSTEM "%XMLNOTESPROJECT%article_notes.dtd">
 
J

Johannes Koch

ezmiller said:
I tried the following but it did not work:

<!DOCTYPE article SYSTEM "%XMLNOTESPROJECT%/article_notes.dtd">

where XMLNOTESPROJECT is a system variable with the path of the dtd
file.

Why does this not work?

Because the system identifier has to be a URI.
 

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,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top