Re: [xsl] XSLT match with regex what's the best current solution?

Subject: Re: [xsl] XSLT match with regex what's the best current solution?
From: Gunther Schadow <gunther@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Jan 2002 18:02:12 -0500
Michael Kay wrote:


If you know Java, writing Saxon extension functions isn't difficult. It's
described in the extensibility.html file that comes with the download.


I did just that and I can see the light!

Using the GNU Java regex package it was easy, but ended up slow.

Now I use ORO matcher and that's O.K. speed. Had to do some
tricks with a wrapper class to make it easier on the XSLT side
and to make regex matches be part of template match patterns
at all (can't refer to a variable in template match patterns.)

I am ready to switch from AWK to XSLT for my up-translation
project and will report more when I'm a good deal ahead.

Eventually some lower level XSLT support will be needed for
tail-recursion elimination and to avoid excessive copying of
strings and substrings of a (long) text node. Will have
proposals / requests within a month or so.

But the proof of concept is in the making. I'm developing
some use patterns. Up-translation with XSLT will be common
place a year from now.

And saxon is great!

cheers,
-Gunther



--
Gunther Schadow, M.D., Ph.D.                    gschadow@xxxxxxxxxxxxxxx
Medical Information Scientist      Regenstrief Institute for Health Care
Adjunct Assistant Professor        Indiana University School of Medicine
tel:1(317)630-7960                         http://aurora.regenstrief.org



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread