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

RE: msxml: filtering by wildcard values

Subject: RE: msxml: filtering by wildcard values
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Fri, 8 Oct 1999 10:44:42 +0100
xsl if wildcard
No - later WDs have this functionality, but the MSXML parser does not do it.
Microsoft's parser (sort of) complies with the December 1998 working draft
of XSL. They do not seem to be in a hurry to release an updated version,
despite the fact that we are now on the third draft since then. I've heard
rumours that they are not going to release the next version until XSL is a
fixed standard.

You *can* fudge the "starts-with" function by using $gte$ and $lt$ in your
pattern string, but that involves knowing the order in which letters/
symbols come.

For example:

<xsl:if test="A_TAG[. $lt$ "b" $and$ . $gte$ "a"]">

would return true if the value of A_TAG started with the (lower-case) letter
"a".

I gave up trying to make the MS version do "contains" - there doesn't seem
to be any way of doing it at all.

Hope this helps (though I doubt it *grin*)

Ben Robb

> -----Original Message-----
> From: Mattias Konradsson [mailto:preacher@xxxxxxxxxxx]
> Sent: 08 October 1999 04:08
> To: XSL mailList
> Subject: msxml: filtering by wildcard values
> 
> 
> Seems that you can use filter patterns to match almost any conceivable
> elementname, but can you can do the same for the actual 
> values, like can I
> filter for an element that *contains*  a certain word?
> 
> MSXML btw.
> 
> thanks for any help on this, interesting if I could implement 
> a real search
> function with nothing but xml and xsl  :)
> 
> 
> --------------------
> Mattias  Konradsson
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.