[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: problems caused by DOCTYPE
At 03:29 PM 5/12/2004, you wrote:
Thanks, that works (copying the dtd file in the same directory as the input file). Glad it worked! The SYSTEM keyword indicates a system pathname, so it needs to represent where the DTD can actually be found -- XSLT is just following the XML spec here. You can satisfy the requirement by: 1. having a copy of the DTD in the working directory as you did 2. having the SYSTEM key represent an actual path to where the DTD is, for example, H:\projects\dtd\mga.dtd or the like -- however, beware because you're now stuck with a particular file-naming convention, so your colleagues who use a different OS like Linux would have to change the SYSTEM to a filename they can read. 3. have a shortcut or symbolic link or something like that pointing from the working directory to the actual location of the DTD. 4. Use the PUBLIC keyword instead so that the DTD can be found where that reference resolves to -- usually a URI of some sort. I've usually used #3 and I've scripted a shortcut for each working directory so that it automatically gets placed in the directory I want to work in. That proved to be the simplest solution for my needs and kept the DTD itself in a single centralized location. Hope that helps! Regards, Zolmol Yours, Chris Loschen closchen@xxxxxxxxxxxxxxxxxx 781-718-3017 (cell)
|
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
|