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

RE: About "starts-with"

Subject: RE: About "starts-with"
From: "Selva, Francis" <Francis.Selva@xxxxxxxxxxxxxxx>
Date: Wed, 5 Apr 2000 10:25:28 -0700
names that starts from a
David,I checked the archives and I couldnt find a solution in there.So I
guess back to you..... :)

How can I get the names which starts with a particular character if my xml
is like this?

<test>
	<name>Francis</name>
	<name>Frank</name>
	<name>Joe</name>
</test>

I tried like this which gives me the correct boolean values but how can I
get the names?

<xsl:template match="/">
	<xsl:for-each select="//name">
		<xsl:value-of select="starts-with(.,'a')"/>
	</xsl:for-each>
</xsl:template>

Francis

 
> 
> select="name[starts-with(.,'F')]"
> 
> > asked this question before but I missed the answer.
> the list is archived, you know.
> 
> David
 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.