XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Harpreet GangyanSubject: wild card chracter usage in XSL
Author: Harpreet Gangyan
Date: 27 Apr 2009 11:23 PM
I have used * as a wild card character search in a Test statement in xsl but it didn't work.

<xsl:if test="zone_desc!='*General Admission*' and contains(zone_desc,'GA*')!=1">

Please advice on this.

Tony LavinioSubject: wild card chracter usage in XSL
Author: Tony Lavinio
Date: 28 Apr 2009 08:06 AM
First, this is the XQuery forum, not the XSLT forum.
Second, neither '=' nor 'contains' does wildcards.

You need an XSLT 2 or XQuery processor to do this.
The XPath syntax can be right in the specification.
I found it by Google-ing for "xpath 2.0", opening the
W3C spec, and looking for the word "regular".
See http://www.w3.org/TR/xpath-functions/#string.match

Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.