This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Absolute path for a DTD and a XSL sheet
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Absolute path for a DTD and a XSL sheet
- From: "Fr\id\iric SCHWEBEL" <schwebel at rfv dot insa-lyon dot fr>
- Date: Tue, 3 Apr 2001 15:34:08 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello,
I know this is not XSL related, but since all my Cocoon and XML-related
friends are here :) I ask it here though :
Each of my XML and XSL files has a dtd. There are different DTDs, some use
other DTDs and so on.
I'd like to have a string constant that gives the local files root
directory. Here's an example of what I'd like to do (but it doesn't work) :
<!-- this is what I'd like to put at the begining of each xsl or xml
file -->
<!DOCTYPE chapitre
[
<!ENTITY % chemin_install SYSTEM "/chemin_install.ent">
%chemin_install;
]
SYSTEM "&chemin;/dtd/chapitre.dtd"> <!-- the dtd won't be the same in each
file -->
<!----------------------------->
and in chemin_install.ent, I have this :
<!ENTITY chemin "C:/Program_Files/jakarta-tomcat/webapps/ampere">
I want to do that for 2 reasons :
- if I move XML and/or XSL files from a directory or another, all relative
paths for DTDs and XSL sheets will have to be changed
- the server is my computer right now, but it will soon be another one. So
if I put the absolute path (either with "http://" or with "file://") in each
XML and XSL file, I'll have to change all paths in all files when I change
the server.
With this "solution" (but apparently it's impossible), the only constraint
would be to put chemin_intsall.ent in the root directory of the drive where
I install Cocoon and my files.
Any help will be GREATLY appreciated.
Frederic
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list