Yuenan Yang
04-18-2000, 10:40 PM
Is there a $like$ operator in XSL, which can do a 'like' search, like SQL's
LIKE keyword?
LIKE keyword?
|
Click to See Complete Forum and Search --> : $like$ operator in XSL Yuenan Yang 04-18-2000, 10:40 PM Is there a $like$ operator in XSL, which can do a 'like' search, like SQL's LIKE keyword? Rohit Wason 04-19-2000, 06:04 AM "Yuenan Yang" <yuenan@idcglobal.com> wrote: > >Is there a $like$ operator in XSL, which can do a 'like' search, like SQL's >LIKE keyword? I would use JScript's String.match(rgExp) to do that. <xsl:if test=...> can be used to do that Rohit Greg Longtin 04-19-2000, 11:07 AM Yuenan, The XPath contains() function Greg Yuenan Yang <yuenan@idcglobal.com> wrote in message news:38fd0e76$1@news.devx.com... > > Is there a $like$ operator in XSL, which can do a 'like' search, like SQL's > LIKE keyword? Yuenan Yang 04-19-2000, 10:36 PM So no $like$ operator in select pattern at all? Greg Longtin 04-19-2000, 11:34 PM Yuenan, I'm sorry I wasn't clearer. The XPath 'contains' function is very similar to the SQL 'Like' operator. Greg Longtin "Yuenan Yang" <yuenan@idcglobal.com> wrote in message news:38fe5f17$1@news.devx.com... > > So no $like$ operator in select pattern at all? Yuenan Yang 04-20-2000, 11:00 AM The question is, in XSL (http://www.w3.org/TR/WD-xsl), We can use <xsl:for-each select="person[@firstname $iqe$ 'yuenan']" order-by="lastname">, is there a solution like, <xsl:for-each select="person[@firstname $like$ 'uen']" order-by="lastname"> ? Greg Longtin 04-20-2000, 11:58 AM Yuenan, Final answer (sorry, couldn't resist). AFAIK, not in http://www.w3.org/TR/WD-xsl without script. http://www.w3.org/1999/XSL/Transform does allow it... Sorry, Greg Yuenan Yang <yuenan@idcglobal.com> wrote in message news:38ff0d86$1@news.devx.com... > > The question is, in XSL (http://www.w3.org/TR/WD-xsl), > We can use > <xsl:for-each select="person[@firstname $iqe$ 'yuenan']" order-by="lastname">, > is there a solution like, > > <xsl:for-each select="person[@firstname $like$ 'uen']" order-by="lastname"> devx.com
Copyright WebMediaBrands Inc. All Rights Reserved |