Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 XSLT plug-in patch: XSLT errors to jEdit ErrorList

closed-accepted
Eric Le Lay
None
5
2010-02-14
2006-12-07
Lari Hotari
No

Here's a patch to XSLT plug-in. XSLT compilation and execution errors and warnings will show up in the jEdit ErrorList.
It's possible to jump directly to the xsl file's line containing the error with a mouse click.

It's been tested with Saxon 8.8, but it should also work with Xalan, because there's nothing Saxon specific.
It uses the javax.xml.transform.ErrorListener interface to get the errors from the XSLT processor. see http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/ErrorListener.html .
The jEdit version used in testing was jEdit 4.3pre4 running on Java 1.5.0_06 Linux.

list of files:
xslt_errorlistener_support.patch
- contains the patch: diff -u -r xslt.orig xslt (where xslt.orig contains original sourcecode from XSLT-0.6.0.tar.gz and xslt is the modified version)
xslt_errorlistener_support_patch_sourcecode.zip
- contains modified xslt/*.java files
XSLT.jar
- compiled version of the modified plug-in

I hope this patch will be taken in to the main XSLT plugin distribution since this makes it much easier to work with XSLT in jEdit. I got frustrated in scrolling the activity log and searching for the XSLT error message.

Discussion

  • Lari Hotari
    Lari Hotari
    2006-12-07

    Logged In: YES
    user_id=78801
    Originator: YES

    File Added: XSLT.jar

     
  • Lari Hotari
    Lari Hotari
    2006-12-07

    Logged In: YES
    user_id=78801
    Originator: YES

    File Added: xslt_errorlistener_support_patch_sourcecode.zip

     
  • Lari Hotari
    Lari Hotari
    2006-12-07

    contains the patch: diff -u -r xslt.orig xslt (where xslt.orig contains original sourcecode from XSLT-0.6.0.tar.gz and xslt is the modified version) 1. version had problem with windows file urls

     
  • Lari Hotari
    Lari Hotari
    2006-12-07

    Logged In: YES
    user_id=78801
    Originator: YES

    File Added: xslt_errorlistener_support.patch

     
  • Lari Hotari
    Lari Hotari
    2006-12-07

    modified XSLT plugin

     
    Attachments
  • Lari Hotari
    Lari Hotari
    2006-12-07

    Logged In: YES
    user_id=78801
    Originator: YES

    File Added: XSLT.jar

     
  • Lari Hotari
    Lari Hotari
    2006-12-07

    Logged In: YES
    user_id=78801
    Originator: YES

    File Added: xslt_errorlistener_support_patch_sourcecode.zip

     
  • Alan Ezust
    Alan Ezust
    2006-12-07

    • assigned_to: nobody --> robmckinnon
     
  • Alan Ezust
    Alan Ezust
    2006-12-07

    Logged In: YES
    user_id=935841
    Originator: NO

    Thank you lari for your contribution.

    Robert, you are listed as one of the maintainers of this plugin. Would you like to apply and submit an updated release announcement?

     
  • Alan Ezust
    Alan Ezust
    2010-01-09

    • assigned_to: robmckinnon --> nobody
     
  • Alan Ezust
    Alan Ezust
    2010-01-09

    XSLT plugin needs a new maintainer. And should be updated with saxon9. Volunteers?

     
  • Eric Le Lay
    Eric Le Lay
    2010-02-08

    As I would like to release a new version for XML plugin compatibility, I'll take this one in...

     
  • Eric Le Lay
    Eric Le Lay
    2010-02-08

    • assigned_to: nobody --> kerik-sf
     
  • Eric Le Lay
    Eric Le Lay
    2010-02-14

    applied with minor modifications in r17267.
    Thanks for the patch !

     
  • Eric Le Lay
    Eric Le Lay
    2010-02-14

    • status: open --> closed-accepted