[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Absolute path for a DTD and a XSL sheet

Subject: Absolute path for a DTD and a XSL sheet
From: "Fr\id\iric SCHWEBEL" <schwebel@xxxxxxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 15:34:08 +0200
dtd absolute path
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.