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

Re: How to test a substring in an XSL:IF

Subject: Re: How to test a substring in an XSL:IF
From: "Gyan Jadal" <gjadal@xxxxxxxxxxx>
Date: Fri, 26 Jul 2002 17:51:56 -0500
xsl if substring
Is there any other way other than to use contains function??


----- Original Message -----
From: "Julian Reschke" <julian.reschke@xxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, July 26, 2002 4:48 PM
Subject: RE:  How to test a substring in an XSL:IF


> FAQ.
>
> "WD-XSL" is not XSLT and doesn't support XPath.
>
> Upgrade. See FAQ on http://www.netcrubible.com.
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Gyan Jadal
> > Sent: Friday, July 26, 2002 11:45 PM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: Re:  How to test a substring in an XSL:IF
> >
> >
> > Tried that . Got the following error ..
> > Error Type:
> > msxml3.dll (0x80004005)
> > Unknown method. -->contains(name<--()='Save')
> >
> >
> > ----- Original Message -----
> > From: "Thomas Bayer" <bayer@xxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Sent: Friday, July 26, 2002 3:37 PM
> > Subject: AW:  How to test a substring in an XSL:IF
> >
> >
> > > Hi,
> > > contains is a XPath function and not in XSL or XSLT Namespace. You use
> > XPath
> > > functions inside attributes. Try:
> > >
> > > <xsl:when test="contains(name(),'save')">
> > >
> > >
> > > Thomas Bayer
> > > Orientation in Objects
> > > http://www.oio.de
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von
> > Gyan Jadal
> > > > Gesendet: Freitag, 26. Juli 2002 22:16
> > > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > > Betreff:  How to test a substring in an XSL:IF
> > > >
> > > >
> > > >  All,
> > > >   I checked in the existing forums but couldn't get a specific
answer
> > for
> > > >   this.
> > > >   I am trying to test if a string pattern exists in the elements
name
> > tag
> > > >   How do I search for a substring in a main string value.?
> > > >
> > > >   I am using the following namespace "http://www.w3.org/TR/WD-xsl"
> > > >   which does not support 'contains' function.
> > > >
> > > >   My code :
> > > >   <xsl:when test=".[name='Save']">
> > > >
> > > >   The name may contain "Save Customer"
> > > >   I want to test if the name contains 'Save' ..
> > > >
> > > >   Help is appreciated.
> > > >
> > > >
> > > >
> > > >  XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
> > > >
> > >
> > >
> > >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > >
> > >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  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.