[xsl] Re: attribute closest match

Subject: [xsl] Re: attribute closest match
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 7 Aug 2002 22:00:14 -0700 (PDT)
--- "Matthew L. Avizinis" <mla at gleim dot com> wrote:

 
> Hello all,
>   I am comparing a series of attribute (called 'id') values in one
> xml
> file
> with same in a second xml file.  If there is an id value in the the
> second
> file which matches, I grab the value of the element and use it.  If
> there is
> no match, I use the Xalan redirect extension element to emit a log
> file
> entry essentially stating that there wasn't a match for that id but
> can't
> provide much more information.  It could be that there is a _nearly_
> matching id, e.g. maybe two characters are accidentally transposed.
>   I believe that use of computers should make our lives easier.  So
> what I'd
> like to know is if anyone knows of any XSLT templates which can
> essentially
> find a _closest match_ which I could then emit to the log file or do
> I
> have
> to resort to writing an extension function?
> 
> thank you for any suggestions,
> 
>    Matthew L. Avizinis <mailto:mla@xxxxxxxxx>
> Gleim Publications, Inc.
>    4201 NW 95th Blvd.
>  Gainesville, FL 32606
> (352)-375-0772
>       www.gleim.com <http://www.gleim.com>


Can be done in XSLT, but first you have to define precisely 
"_closest match_".



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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


Current Thread