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

Discussion in 'XML' started by ezmiller, Nov 26, 2005.

  1. ezmiller

    ezmiller Guest

    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?
    ezmiller, Nov 26, 2005
    #1
    1. Advertising

  2. In article <>,
    ezmiller <> wrote:
    >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
    Richard Tobin, Nov 26, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joseph Tilian
    Replies:
    0
    Views:
    337
    Joseph Tilian
    Dec 21, 2004
  2. Ronald Fischer
    Replies:
    4
    Views:
    1,741
    Ronald Fischer
    Mar 17, 2005
  3. Philip
    Replies:
    11
    Views:
    1,687
    sunil_k
    May 13, 2008
  4. ezmiller
    Replies:
    0
    Views:
    337
    ezmiller
    Nov 26, 2005
  5. test
    Replies:
    2
    Views:
    1,987
    Oliver Wong
    Jul 28, 2006
Loading...

Share This Page