[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Sorting alphabetical entries.
Subject: RE: [xsl] Sorting alphabetical entries. From: "Blaise, Isaac J" <iblaise@xxxxxxxxxxxxx> Date: Tue, 6 May 2003 16:49:40 -0400 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Disregard: [xsl] Sorting alphabetic, Ben Trafford | Thread | RE: [xsl] Sorting alphabetical entr, Ben Trafford |
[xsl] Importing stylesheets (overri, Karl J. Stubsjoen | Date | Disregard: [xsl] Sorting alphabetic, Ben Trafford |
Month |
Keywords