This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]