|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








