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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
- XQuery Help and Discussion (2017)
-> + Sample XQuery extension using ... (2)
-> + Another EDI problem (7)
-> + Removing xmls:od and xmls:xsi ... (2)
-> + Configuring MarkLogic with Sty... (10)
-> + EDI to XML (7)
-> + Can't write to SQL-Server (4)
-> + XQuery and SQL-Server (2)
-> + Connection to MS SQL Server in... (2)
-> + copy/modify with Stylus Studio... (5)
-> - copy/modify with Stylus Studio... (1)
-> + [SQLServer JDBC Driver]Value c... (5)
-> - wild card chracter usage in XS... (2)
-> ->wild card chracter usage ...
-> + Xquery with SQL NEWID function (4)
-> + Change Only One Line (5)
-> + Format DB xQuery results (3)
-> + Adding MsSQL Database to XQuer... (3)
-> + Need help with using XQuery in... (2)
-> + please help! simple XML transf... (2)
-> + xquery for invoice data (3)
-> + Xquery to cross reference two ... (3)
-- Previous [121-140] [141-160] [161-180] Next
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
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.

Posttop
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

   
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!  
go

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.