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]

RE: About "starts-with"


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

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