Fwd: XSLT for Emacs
Brought to you by:
ovidiu
From: Jeremy C <je...@co...> - 2001-05-06 17:50:49
|
I'm sorry. I have found the problem, and that was that my JDE looked great, but the .jar files were not in my class path, as well as xslt.jar was not in my class path. I added these, and now I can get it to process a XML file via Xalan but not Cocoon 1.8.2 which is really what I use. It reports: Could not process file, most probably Cocoon1 could not be found! I double checked to make sure xslt.jar is in my class path. I can set the processor to be Xalan and all works great, but it will not do some of the things like SQL that I use in my sites. Thanks for all your help, Jeremy - je...@co... Oh, here's my new class path: SET CLASSPATH=.;C:\DEVELOP\cocoon-1.8.2\bin\cocoon.jar;C:\DEVELOP\cocoon-1.8.2\lib\xalan_1_2_D02.jar;C:\DEVELOP\cocoon-1.8.2\lib\xerces_1_2.jar;C:\DEVELOP\jboss_jetty\jetty\lib\servlet_2_2.jar;C:\DEVELOP\emacs\site\xslt\xslt.jar;C:\DEVELOP\jde-2.2.6\java\lib\jde.jar;C:\DEVELOP\jde-2.2.6\java\lib\bsh.jar;C:\DEVELOP\cocoon-1.8.2\lib\bsf.jar;C:\DEVELOP\cocoon-1.8.2\lib\bsfengines.jar;C:\DEVELOP\cocoon-1.8.2\lib\fesi.jar;C:\DEVELOP\cocoon-1.8.2\lib\fop_0_15_0.jar;C:\DEVELOP\cocoon-1.8.2\lib\sax-bugfix.jar;C:\DEVELOP\cocoon-1.8.2\lib\stylebook-1.0-b2.jar;C:\DEVELOP\cocoon-1.8.2\lib\turbine-pool.jar;C:\DEVELOP\cocoon-1.8.2\lib\w3c.jar;C:\DEVELOP\cocoon-1.8.2\lib\xml.jar;C:\DEVELOP\cocoon-1.8.2\lib\xt.jar I added everything I could find :-) >Date: Sat, 05 May 2001 13:50:18 -0400 >To: ov...@xe... >From: Jeremy C <je...@co...> >Subject: XSLT for Emacs > >I am having a bit of trouble getting this to function properly. > >I am running Emacs for Windows, 20.7 ... I have installed PSGML, JDE, and >elib is installed (No errors on load and JDE works great). What happens is >I get an error when hitting C-c C-x C-v that reports: Cannot find main >class, program will exit. > >My Class path is: > >SET >CLASSPATH=C:\DEVELOP\cocoon-1.8.2\bin\cocoon.jar;C:\DEVELOP\cocoon-1.8.2\lib\xalan_1_2_D02.jar;C:\DEVELOP\cocoon-1.8.2\lib\xerces_1_2.jar;C:\DEVELOP\jboss_jetty\jetty\lib\servlet_2_2.jar > >Also, I get no syntax highlighting... Anyway, here is the revelant parts >of my .emacs file as well. > >(add-to-list 'load-path (expand-file-name "~/emacs/site/jde/lisp")) >(add-to-list 'load-path (expand-file-name "~/emacs/site/semantic")) >(add-to-list 'load-path (expand-file-name "~/emacs/site/elib")) >(add-to-list 'load-path (expand-file-name "~/emacs/site/eieio")) >(add-to-list 'load-path (expand-file-name "~/emacs/site/xslt")) >(add-to-list 'load-path (expand-file-name "~/emacs/site/psgml")) > >(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t) >(autoload 'xml-mode "psgml" "Major mode to edit XML files." t) >(autoload 'xslt-process-mode "xslt-process" "Run XSLT processor on buffer" t) > >(setq auto-mode-alist > (append '(("\\.xml$" . xml-mode)) auto-mode-alist)) > >(add-hook 'xml-mode-hook 'xslt-process-mode) > >(setq defer-loading-jde nil) >(if defer-loading-jde > (progn > (autoload 'jde-mode "jde" "JDE mode." t) > (setq auto-mode-alist > (append > '(("\\.java\\'" . jde-mode)) > auto-mode-alist))) > (require 'jde)) >(defun my-jde-mode-hook () > (setq c-basic-offset 2)) > >(add-hook 'jde-mode-hook 'my-jde-mode-hook) > >(custom-set-variables > '(xslt-process-cocoon1-properties-file > "c:\\DEVELOP\\cocoon-1.8.2\\conf\\cocoon.properties") > '(font-lock-support-mode (quote lazy-lock-mode)) > '(xslt-process-default-processor (quote (Xalan1))) >(custom-set-faces) > >Can you offer any assistance with my difficulties? > >Thank you very much, > >Jeremy - je...@co... |