|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sorting alphabetical entries.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








