[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
AW: [xsl] How to test a substring in an XSL:IF
Subject: AW: [xsl] How to test a substring in an XSL:IF From: "Thomas Bayer" <bayer@xxxxxx> Date: Fri, 26 Jul 2002 22:37:58 +0200 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to test a substring in an, Gyan Jadal | Thread | Re: [xsl] How to test a substring i, Gyan Jadal |
[xsl] How can I bend generate-id()?, Charles Knell | Date | RE: [xsl] How can I bend generate-i, Hunsberger, Peter |
Month |