> -----Original Message-----
> From: Charlie McDowell [mailto:charlie@...]
> I can weave/tangle my foo.xml document if it is in the xmLP
> directory. How do I invoke weave/tangle from another
> directory? When I tried java org.apache.xalan.xslt.Process
> -IN foo.xml -XSL v1.0\xmLPweave.xsl -OUT
> foo.html
> where v1.0 is where the xmLP files are located, I get
> ... FileNotFoundException:... workingDir\dtd\xhtml-xmLP.dtd
> when the file is in workingDir\v1.0\dtd\xhtml-xmLP.dtd
I've worked it out now. Your input file "foo.xml" uses the sample
"xhtml-xmLP.dtd" DTD, and in the DOCTYPE it is referred to using the
relative path "dtd\xhtml-xmLP.dtd". That relative path is correct if
"foo.xml" is in the xmLP directory, but not if "foo.xml" is anywhere
else. It isn't necessary to have your input file in the xmLP directory
in order to use the stylesheets, but if you use the sample DTD, you need
to make sure that the DOCTYPE in your input file points to it. So,
either you change the path in the DOCTYPE, or you copy the DTD to the
correct location relative to your input file.
Is that OK?
Cheers,
Tony.
========
Anthony B. Coates
XML & Search Architect
Chief Technology Office
Reuters Plc, London.
Tony.Coates@...
========
-------------------------------------------------------------- --
Visit our Internet site at http://www.reuters.com
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Reuters Ltd.