Thread: Re: Xemacs XSLT menu not showing
Brought to you by:
ovidiu
From: Ovidiu P. <ov...@xe...> - 2002-04-09 17:28:00
|
What happens if you run M-x xslt-process-mode while visiting the XSLT buffer? Do you get the menu? From the modeline it appears you're using the xslide mode for XSLT, right? It may be that you don't have a hook in your .emacs that enables the XSLT-process mode when you open XSLT files: (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 |
From: <he...@wk...> - 2002-04-10 08:01:22
|
> 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 |
From: William BC C. <cra...@wi...> - 2002-04-11 09:12:25
|
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 > |
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 > > |
From: <aq...@da...> - 2002-04-11 18:29:46
|
I had the same problem with xslt mode, The version thats shipped with XEmacs does not work at all. You need to install the newer version of xslt process and reconfigure it... Also I couldn't the XML highlighting to work.. At last I gave up and started using some other editor for XML.. I wish the version shipped with XEmacs worked right away.. Anup _____________________________________________________________ |
From: <aq...@da...> - 2002-04-15 20:22:42
|
William, Thanks for the snippet.. I got mine working. But now I'm unable to edit the XML Files. Even though my files are writable on disk they are opened in read-only mode. What do I need to do in order to edit the files... I sure I'm missing something.. Regards, Anup _____________________________________________________________ |
From: Heidi <he...@wk...> - 2002-04-15 20:30:28
|
Hi all I have just tried editing an XML file but it is also marked as read only. My XSL files are editable though. Mode line says for XML file Buffer is read only #<buffer "home.xml"> All help gratefully recieved. Thanks Heidi At 01:19 PM 15/04/2002 -0800, aq...@da... wrote: >William, >Thanks for the snippet.. I got mine working. >But now I'm unable to edit the XML Files. Even though my files are >writable on disk they are opened in read-only mode. What do I need to do >in order to edit the files... I sure I'm missing something.. > >Regards, >Anup >_____________________________________________________________ |
From: Ovidiu P. <ov...@xe...> - 2002-04-15 21:53:19
|
Try this in your .emacs file: (add-hook 'xml-mode-hook (lambda () (toggle-read-only 0))) Please let me know if it works for you. Ovidiu On Mon, 15 Apr 2002 21:40:08 +0100, Heidi <he...@wk...> wrote: > Hi all > > I have just tried editing an XML file but it is also marked as read > only. My XSL files are editable though. > Mode line says for XML file > > Buffer is read only #<buffer "home.xml"> > > All help gratefully recieved. > > Thanks > > Heidi > > At 01:19 PM 15/04/2002 -0800, aq...@da... wrote: > >William, > >Thanks for the snippet.. I got mine working. > >But now I'm unable to edit the XML Files. Even though my files are > >writable on disk they are opened in read-only mode. What do I need to do > >in order to edit the files... I sure I'm missing something.. > > > >Regards, > >Anup > >_____________________________________________________________ > > |
From: <he...@wk...> - 2002-04-15 22:04:33
|
At 02:50 PM 15/04/2002 -0700, Ovidiu Predescu wrote: (add-hook 'xml-mode-hook (lambda () (toggle-read-only 0))) Thanks for the quick reply that fixed the problem. :) Heidi |
From: <aq...@da...> - 2002-04-16 13:13:47
|
Ovidiu, That worked out just fine.. Thanks a lot Anup _____________________________________________________________ |