[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT match with regex what's the best current solu
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|