xsl-list
[Top] [All Lists]

RE: Changing DOCTYPE during runtime

2004-08-30 10:16:14
 

-----Original Message-----
From: Ranjan K. Baisak [mailto:ranjanbaisak(_at_)yahoo(_dot_)com] 
Sent: 30 August 2004 12:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Changing DOCTYPE during runtime

Hello List,
          My xml contains <!DOCTYPE project PUBLIC
"-//XYZ Corporation//Project 1.3//EN"
"h:/xyz_project/dtd/project.dtd"> and to change the
hardcoded "h:", I declared a system variable PROJ_HOME
and I changed the declaration 
<!DOCTYPE project PUBLIC "-//XYZ Corporation//Project
1.3//EN" "$PROJ_HOME:/xyz_project/dtd/project.dtd">. 
I am setting PROJ_HOME during runtime but still the
same thing is not reflected in xml document.

Am I doing something wrong?

Firstly, this question has nothing to do with XSLT.

Secondly, references to environment variables such as $PROJ_HOME are
replaced by the contents of the variable only when you are executing a shell
script, not when you are running software such as an XML Parser.

The correct mechanism to use here is a relative URI.

Michael Kay