[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: attribute closest match

Subject: Re: attribute closest match
From: Alex Sharpe <alexanderfsharpe@xxxxxxxxx>
Date: Wed, 7 Aug 2002 19:33:21 -0700 (PDT)
alex sharpe
Hey Mat,

this may be of some help.

to upper case:
translate(somevalue,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ
')

to lower case:

translate(somevalue,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz
')

Hope this is helpful.

Alex.
--- Joerg Heinicke <joerg.heinicke@xxxxxx> wrote:
> Hello Matthew,
> 
> to find a "closest match" is really not a work for
> XSLT. XML in general 
> is really exact, so you can't do such work. So only
> things I could 
> imagine are the functions contains() and
> starts-with(), but it's not 
> much of sense I think. Try another approach than
> XSLT or use an 
> extension function.
> 
> Regards,
> 
> Joerg
> 
> Matthew L. Avizinis 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
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________________________
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.