Can you specify the path of a .dtd file using an environmentl variable?

E

ezmiller

Here is the situation. I have a series of xml files each of which are
linked to one of a set of .xsl files that perform transformations. The
problem is that I want to be able to open these .xml files on differnet
computers without having to modify the path which specifies the
location of the dtd and/or xsl files.

After setting an environment variable "XMLNOTESPROJECT% to the correct
path I tried the following:
<!DOCTYPE article SYSTEM "%XMLNOTESPROJECT%/article_notes.dtd">

It did not work.

How can I tie the path to a system variable?
 
R

Richard Tobin

How can I tie the path to a system variable?

You can't.

You could have a script that changes the files on each machine,
or put the files at locations that work everywhere (such as on a
web server), or you could install a catalog on each machine to map
the addresses. Do a web search for "xml catalog" to find out about
this.

-- Richard
 

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,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top