Re: Xemacs XSLT menu not showing
Brought to you by:
ovidiu
From: Heidi <he...@wk...> - 2002-04-15 17:05:30
|
Hi William Thanks for your help it has now worked on Windows (cygwin). I had to change the paths a little. Xemacs now displays the XSLT menu. Many thanks again! Heidi :) At 11:11 AM 11/04/2002 +0200, William BC Crandall wrote: >Hello Heidi, > >Here's what I did to get xslt-process going (in part: >Saxon 6.3 works but not Xalan 2.1.0) with slightly newer >XEmacs (native not Cygwin): > >"XEmacs 21.4 (patch 6) \"Common Lisp (Windows [3])\" [Lucid] (i586-pc-win32) >of Thu Apr 04 2002 on TSUNAMI" > >Yours: > > XEmacs 21.4 (patch 6) "Common Lisp (Windows [1])" [Lucid] (i686-pc-cygwin) > > of Sun Jan 20 2002 on TSUNAMI > > > >First, delete all xslt-process files from standard XEmacs >location, that is, for me: > > C:\XEmacs\xemacs-packages\lisp\xslt-process\ > >Then download latest xslt-process (2.1) from: > > http://xslt-process.sourceforge.net/download.php > >and unzip it locally. For me: > > C:\.xemacs\site\xslt-process > >Then add the following to .xemacs\init.el: > > ;; Find the files > (add-to-list 'load-path > (expand-file-name > "~/.xemacs/site/xslt-process/xslt-process-2.1/lisp")) > > ;; Load as needed > (autoload 'xslt-process-mode "xslt-process" "Emacs XSLT processing" t) > > ;; Identify files to load on > (add-hook 'sgml-mode-hook 'xslt-process-mode) > (add-hook 'xml-mode-hook 'xslt-process-mode) > (add-hook 'xsl-mode-hook 'xslt-process-mode) > > (defadvice xml-mode (after run-xml-mode-hooks act) > "Invoke `xml-mode-hook' hooks in the XML mode." > (run-hooks 'xml-mode-hook)) > > >With that, the XSLT menu shows, and I can process files with >the Saxon engine. Xalan still fails cryptically: > > cd > > java.util.EmptyStackException > > >Hope that helps! > > >William BC Crandall >Wiesbaden Germany >cra...@wi... > > > >----- Original Message ----- >From: <he...@wk...> >To: <ov...@xe...> >Cc: <xsl...@li...> >Sent: 10 April 2002 10:00 AM >Subject: Re: Xemacs XSLT menu not showing > > > > > > > What happens if you run M-x xslt-process-mode while visiting the XSLT > > > buffer? Do you get the menu? > > > > > > No the menu does not appear the mode line changes from > > > > (XSL XSLT Font) for an XSL file > > (XML XSLT Font) for an XML file > > > > to > > > > (XSL FONT) for an XSL file > > (XML Font) for an XML file > > > > Of course, running M-x xslt-process-mode again takes us back to the > > previous mode line. > > > > > > > From the modeline it appears you're using the xslide mode for XSLT, > > > right? > > > > I believe so, I am using the default XEmacs install for windows. > > > > > > > It may be that you don't have a hook in your .emacs that > > > enables the XSLT-process mode when you open XSLT files: > > > > The hooks are in place, my init.el file (remember I am using XEmacs not > > Emacs, therefore no .emacs file) contains the following: > > > > (autoload 'xslt-process-mode "xslt-process" "Emacs XSLT processing" t) > > (autoload 'xslt-process-install-docbook "xslt-process" > > "Register the DocBook package with XSLT-process" t) > > (add-hook 'sgml-mode-hook 'xslt-process-mode) > > (add-hook 'xml-mode-hook 'xslt-process-mode) > > (add-hook 'xsl-mode-hook 'xslt-process-mode) > > > > (defadvice xml-mode (after run-xml-mode-hooks act) > > "Invoke `xml-mode-hook' hooks in the XML mode." > > (run-hooks 'xml-mode-hook)) > > > > I believe the fact that the XSLT modeline appears indicates that the hooks > > are working correctly, is this correct? > > > > If I run M-x xslt-process-invoke on an XML buffer the beanshell is invoked > > and Saxon attempts the transformation. I believe this indicates that XSLT > > Process is installed correctly, although not configured. > > > > In case it is useful I am running: > > > > XEmacs 21.4 (patch 6) "Common Lisp (Windows [1])" [Lucid] (i686-pc-cygwin) > > of Sun Jan 20 2002 on TSUNAMI > > Windows 2000 5.00.2195 > > Dell Inspiron 3800, 128M > > > > Thanks for your assistance so far, > > > > Heidi > > > > > > > > > (add-hook 'xsl-mode-hook 'xslt-process-mode) > > > > > Best regards, > > > -- > > > Ovidiu Predescu <ov...@cu...> > > > http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other > > > > stuff) > > > > > On Tue, 9 Apr 2002 11:23:35 +0100 (BST), he...@wk... wrote: > > > > >> Hi all > > >> > > >> I have searched the mailing list regarding the problem I have with the > > XSLT > > >> menu not displaying in Xemacs. Regarding Ovidiu's questions in that >post > > >> > > >> "Do you see an XSLT indicator in the modeline?" > > >> > > >> Yes I can see an XSLT indicator in the modeline. What I actually see >is: > > >> > > >> (XSL XSLT Font) > > >> > > >> I have loaded an XSL file but no XSLT menu appears. > > >> > > >> TIA > > >> > > >> Heidi > > > > > > > > > > _______________________________________________ > > Xslt-process-users mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xslt-process-users > > |