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

RE: Sorting alphabetical entries.

Subject: RE: Sorting alphabetical entries.
From: "Blaise, Isaac J" <iblaise@xxxxxxxxxxxxx>
Date: Tue, 6 May 2003 16:49:40 -0400
sorting alphabetic
Hi Ben,

I suggest you use the substring() function in your test.

something like 
<xsl:template match="entry">
 <xsl:if test="substring(string,start,length)='foo'">
	<xsl:apply-templates/>
 </xsl:if>
</xsl:template>

you'll have to change what your 'string' is, and what foo is, but that should work for ya.

cheers,
Isaac
-----Original Message-----
From: Ben Trafford [mailto:ben@xxxxxxxxxxxxx]
Sent: Tuesday, May 06, 2003 3:29 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Sorting alphabetical entries.



	Hi!

	I have the following XML structure:

	<entry>
		<title></title>
			....
	</entry>

	I have many entries. Let's say I want to limit my output to only those 
entries which contain titles starting with the letter 'A'.

	I'm assuming it would look something like this:

	<xsl:template match="entry">
   		<xsl:if test="????">
		        	<xsl:apply-templates/>
		</xsl:if>
	</xsl:template>

	So, what the heck is my test, in this instance? Doubtlessly, I'm thinking 
waaaay too hard on this subject, and have missed something obvious.

--->Ben


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


 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.