[xsl] Path for a DTD : proposition

Subject: [xsl] Path for a DTD : proposition
From: Paul Terray <terray@xxxxxxxxxxxx>
Date: Mon, 26 Feb 2001 15:21:56 +0000
Hi to everyone,

I'm having multiple problems with the XML parsing today, due to a simple problem :
the URL localizing the DTD in the DOCTYPE element, with a SYSTEM declaration or a PUBLIC declaration, has to be correct anytime.

This forces us to do a text parsing with transformation before being able to parse the XML simply, which is hardly acceptable.

Now, we all know how SGML solved the problem, using the OASIS catalogs. They are quite useful, but in my opinion, against the XML ease of use, and standalone documents.

Now, there is a simpler way of handling it : what about having a parameter to the XML parser, which is simply the root path of any DTD URL reference ? Like a PATH variable, but for DTDs, that would be given as a parameter to the XSLT program for example (something like "xslcommand in.xml sheet.xsl out.html -dtdpath c:/my/dtd/path").

I know this sound like of naive, since most XML parsers are used in a more global program, giving hooks on DTD declaration, but the use of XSL command line is much more usual, and this is really a problem.

What do you think about it ?

Paul TERRAY - Documents Management Systems Engineer
Centre d'affaires - 22, rue Etienne de Jouy
78353 Jouy en Josas CEDEX
Tel. +33 (0)1 34 58 70 70 - Fax. +33 (0)1 39 46 06 90
email : terray@xxxxxxxxxxxx

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread