how to influence dtd processing?

Subject: how to influence dtd processing?
From: "Mark D. Anderson" <mda@xxxxxxxxxxxxxx>
Date: Sat, 29 Jan 2000 14:02:48 -0800
nsgmls has a command line -i option whereby "-iname" is the same as:
<!ENTITY % name "INCLUDE">

i'd like to do the same thing with xt (or any xslt processor). but
i don't think they support it. i don't even see mention of how
this can be done via their various servlet apis (didn't look too
closely though; i'm mostly using command line xslt exe's now for ease
of debugging).

if i could access an environment variable from inside a dtd, that
would do it.

if i could set a search path for relative system paths
(wrong sgml jargon, i'm sure), that would do it too: i could just
do this:
<!ENTITY % variable_settings SYSTEM "variable_settings.dtd">
and then have multiple versions of the file variable_settings.dtd
in different directories.

of if i could just have a -i command line option, that would do it.

but i can't seem to find any lever with which to enable
me to do this. right now, i'm going in and hand-editing the dtd
each time i want to exchange an "INCLUDE" with an "IGNORE".
if i don't hear of an other solution, then i'll have to stick
an ugly hack in my makefile that automates that hand-editing,
and/or generates the dtd on the fly....


 XSL-List info and archive:

Current Thread