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

RE: Filter XML base on partial matching element value

Subject: RE: Filter XML base on partial matching element value
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Thu, 6 May 2004 12:31:27 -0500
filter xml attribute
Hi Horacio, 

The way you're referring to 'wildcards', you could use the XSLT start-with()
or contains() string functions.

HTH,
<prs/>

-----Original Message-----
From: Horacio Escalada [mailto:HEscalada@xxxxxxxxxx] 
Sent: Thursday, May 06, 2004 12:23 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Filter XML base on partial matching element value

Hi all,

It is possible to use 'wildcards' while selecting elements containing
partial matching values.

My XML source looks like this:

<Activities>
	<Activity>
		<Id>4865</Id>
		<Status>Open</Status>
		<Name>Paul</Name>
	</Activity>
	
	<Activity>
		<Id>6765</Id>
		<Status>Open Pending</Status>
		<Name>John</Name>
	</Activity>

	<Activity>
		<Id>66567</Id>
		<Status>Open</Status>
		<Name>Joseph</Name>
	</Activity>

	<Activity>
		<Id>54565</Id>
		<Status>Close</Status>
		<Name>Susan</Name>
	</Activity>
</Activities>


I would like to get the following result

<Activities>

	<Activity>
		<Id>6765</Id>
		<Status>Open Pending</Status>
		<Name>John</Name>    ----------> Matching 'Jo'
	</Activity>

	<Activity>
		<Id>66567</Id>
		<Status>Open</Status>
		<Name>Joseph</Name>    ----------> Matching 'Jo'
	</Activity>

</Activities>


Thank you in advance

Horacio

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.