Search the web
Sign In
New User? Sign Up
xml-litprog-l · Literate Programming using XML
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: invoking xmLP   Message List  
Reply | Forward Message #190 of 238 |
RE: invoking xmLP

> -----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.



Fri May 17, 2002 8:22 am

ozabcoates
Offline Offline
Send Email Send Email

Forward
Message #190 of 238 |
Expand Messages Author Sort by Date

I haven't had a chance to check this, but I've sometimes such odd things happen when applications use URLs to open files (and they often do this so you can...
Tony Coates
ozabcoates
Offline Send Email
May 14, 2002
2:55 pm

I tried using an absolute file path to the xmLPweave.xsl and a URL. In both cases I still got the same error. It was looking for the dtd\xhtml-xmLP.dtd in the...
professorCharlie
professorCha...
Offline Send Email
May 14, 2002
4:24 pm

... 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...
Tony Coates
ozabcoates
Offline Send Email
May 17, 2002
8:22 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help